From 250f8cce4d0a2ac2016923fe9d4054b96b2ac5ec Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Fri, 25 Jul 2014 02:56:01 +0200 Subject: [PATCH] Added testing --- nbfi/test.sh | 5 +++++ nbfi/test/helloworld.bf | 42 +++++++++++++++++++++++++++++++++++++++++ nbfi/test/hw.bf | 1 + 3 files changed, 48 insertions(+) create mode 100755 nbfi/test.sh create mode 100644 nbfi/test/helloworld.bf create mode 100644 nbfi/test/hw.bf diff --git a/nbfi/test.sh b/nbfi/test.sh new file mode 100755 index 0000000..c1e5bb5 --- /dev/null +++ b/nbfi/test.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for i in `ls test` ; do + bin/nbfi test/$i +done diff --git a/nbfi/test/helloworld.bf b/nbfi/test/helloworld.bf new file mode 100644 index 0000000..f079b46 --- /dev/null +++ b/nbfi/test/helloworld.bf @@ -0,0 +1,42 @@ +++++++++++ +[ + > + +++++++ + > + ++++++++++ + > + +++ + > + + + <<<< + - +] +> +++ +. +> ++ +. ++++++++ +.. ++++ +. +> +++ +. +<< ++++++++++++++++ +. +> +. ++++ +. +------ +. +-------- +. +> ++ +. +> +. diff --git a/nbfi/test/hw.bf b/nbfi/test/hw.bf new file mode 100644 index 0000000..265e751 --- /dev/null +++ b/nbfi/test/hw.bf @@ -0,0 +1 @@ +++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.