summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorBenedict <benedict@0xb8000.de>2017-02-21 12:52:02 +0100
committerBenedict <benedict@0xb8000.de>2017-02-21 13:00:25 +0100
commitddce9b2d44ab48fc566870c5155b39c8fc06f24d (patch)
tree61e6f8d636190ef19f75bfd9cd8e4861ee04cf4f /test.sh
parentf71df313c4480fb3edd91edb572d8013bec6d352 (diff)
moved files of set1 into subdir
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh50
1 files changed, 0 insertions, 50 deletions
diff --git a/test.sh b/test.sh
deleted file mode 100644
index 80ae42f..0000000
--- a/test.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-
-test_compare_string() {
- if [ "$1" == "$2" ]
- then
- echo "test ok"
- else
- echo "test failed"
- fi
-}
-
-test_set1_challenge5() {
-echo "test: set1, challenge 5:"
-
-OUTPUT=$(./task5)
-EXCEPTED="0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f"
-
-test_compare_string "$OUTPUT" "$EXCEPTED"
-}
-
-
-test_set1_challenge1() {
-echo "test: set1, challenge 1:"
-OUTPUT=$(./task1 49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d)
-EXCEPTED="SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t"
-
-test_compare_string "$OUTPUT" "$EXCEPTED"
-}
-
-test_set1_challenge2() {
- echo "test: set1, challenge 2:"
- OUTPUT=$(./task2 1c0111001f010100061a024b53535009181c 686974207468652062756c6c277320657965)
- EXCEPTED="746865206b696420646f6e277420706c6179"
-
- test_compare_string "$OUTPUT" "$EXCEPTED"
-}
-
-test_set1_challenge4() {
- echo "test: set1, challenge 4:"
- OUTPUT=$(./task4)
- EXCEPTED="Now that the party is jumping"
-
- test_compare_string "$OUTPUT" "$EXCEPTED"
-}
-
-test_set1_challenge1
-test_set1_challenge2
-test_set1_challenge4
-test_set1_challenge5