From 70fea39e2bacef646f442cd88c32fcb5f1212725 Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 14 Sep 2009 12:17:57 +0000 Subject: added some tests in the testsuite for the compiler --- testsuite/compiler/check/oper-definition/Res.gf | 5 +++++ testsuite/compiler/check/oper-definition/test.gfs | 1 + testsuite/compiler/check/oper-definition/test.gfs.gold | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 testsuite/compiler/check/oper-definition/Res.gf create mode 100644 testsuite/compiler/check/oper-definition/test.gfs create mode 100644 testsuite/compiler/check/oper-definition/test.gfs.gold (limited to 'testsuite/compiler/check/oper-definition') diff --git a/testsuite/compiler/check/oper-definition/Res.gf b/testsuite/compiler/check/oper-definition/Res.gf new file mode 100644 index 000000000..c22cb33cd --- /dev/null +++ b/testsuite/compiler/check/oper-definition/Res.gf @@ -0,0 +1,5 @@ +resource Res = { + +oper my_oper : Str -> Str ; + +} \ No newline at end of file diff --git a/testsuite/compiler/check/oper-definition/test.gfs b/testsuite/compiler/check/oper-definition/test.gfs new file mode 100644 index 000000000..19dbc0a16 --- /dev/null +++ b/testsuite/compiler/check/oper-definition/test.gfs @@ -0,0 +1 @@ +i testsuite/compiler/check/oper-definition/Res.gf \ No newline at end of file diff --git a/testsuite/compiler/check/oper-definition/test.gfs.gold b/testsuite/compiler/check/oper-definition/test.gfs.gold new file mode 100644 index 000000000..1a7b407f2 --- /dev/null +++ b/testsuite/compiler/check/oper-definition/test.gfs.gold @@ -0,0 +1,5 @@ + + +checking module Res + Happened in operation my_oper in Res.gf, line 3 : + No definition given to the operation -- cgit v1.2.3