From 7a60f782995eed0352f3172f445bb35ae8ee6aa9 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 14 Sep 2015 12:28:41 +0530 Subject: Remove testapp dir, remove reference to testapp in paths, files --- yaksh/scilab_files/test_add.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 yaksh/scilab_files/test_add.sce (limited to 'yaksh/scilab_files/test_add.sce') diff --git a/yaksh/scilab_files/test_add.sce b/yaksh/scilab_files/test_add.sce new file mode 100644 index 0000000..a317cdb --- /dev/null +++ b/yaksh/scilab_files/test_add.sce @@ -0,0 +1,29 @@ +mode(-1) +exec("function.sci",-1); +i = 0 +p = add(3,5); +correct = (p == 8); +if correct then + i=i+1 +end +disp("Input submitted 3 and 5") +disp("Expected output 8 got " + string(p)) +p = add(22,-20); +correct = (p==2); +if correct then + i=i+1 +end +disp("Input submitted 22 and -20") +disp("Expected output 2 got " + string(p)) +p =add(91,0); +correct = (p==91); +if correct then + i=i+1 +end +disp("Input submitted 91 and 0") +disp("Expected output 91 got " + string(p)) +if i==3 then + exit(5); +else + exit(3); +end -- cgit