               assert stdout is value
               done()
 
+  it 'unknown algorithm error using pipes', (done) ->
+    exec sco + "-d hoge < /dev/null", (error, stdout, stderr) ->
+      assert stderr is "Error: unknown algorithm specified"+eol
+      done()
+
 describe 'cli encode and decode test using pipes', ->
   it 'echo hello | sco -e base64 | sco -d base64', (done) ->
     test_using_pipe = "echo hello | #{sco} -e base64 | #{sco} -d base64"

  it 'display help message if -h option specified', (done) ->
    exec sco + '-h', (error, stdout, stderr) ->
      assert.ok stdout.match('help')
      done()

describe 'cli encode test', ->

              assert stdout is value+eol
              done()

  it 'unknown algorithm error', (done) ->
    exec sco + "-e hoge hello", (error, stdout, stderr) ->
      assert stderr is "Error: unknown algorithm specified"+eol
      done()

describe 'cli decode test', ->
  for algo, testset of decode_testset
    do (algo, testset) ->
