diff options
| author | Benedict <benedict@0xb8000.de> | 2016-03-02 19:02:27 +0100 |
|---|---|---|
| committer | Benedict <benedict@0xb8000.de> | 2017-02-21 13:00:24 +0100 |
| commit | 383732972f4c00dce231f61ac7375ae212e0d9c7 (patch) | |
| tree | 3483eec5f58673aced810cfd6d69036f6634b079 /test.sh | |
| parent | e836057207c9de21c5af8f21191aea86184662a3 (diff) | |
set 1, challenge 5 completed
Diffstat (limited to 'test.sh')
| -rw-r--r-- | test.sh | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#!/bin/bash + + +test_compare_string() { + if [ "$1" == "$2" ] + then + echo "test ok" + else + echo "test broken" + fi +} + +test_set1_challenge5() { + +OUTPUT=$(./a.out) +EXCEPTED="0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f" + +test_compare_string "$OUTPUT" "$EXCEPTED" +} + + +test_set1_challenge5 |
