URL:
https://svn.lrde.epita.fr/svn/scool/branches/scool-ng
ChangeLog:
2008-10-08 Maxime van Noppen <yabo(a)lrde.epita.fr>
Fix compilation problems in tests
* class/c++_ast/declaration_002.aterm: Fix.
* class/c++_src/declaration_002.cc: Fix.
* class/c++_ast/inheritance_004.aterm: Remove.
* class/c++_build/declaration_002.g++: New.
* class/c++_src/inheritance_004.cc: Remove.
* class/scool_ast/inheritance_004.aterm,
* class/scool_src/inheritance_004.scl: Fix.
* config: Increase the number of tests to automatically perform the
* compilation test.
class/c++_ast/declaration_002.aterm | 2 +-
class/c++_src/declaration_002.cc | 2 +-
class/scool_ast/inheritance_004.aterm | 2 +-
class/scool_src/inheritance_004.scl | 4 ++++
config | 2 +-
5 files changed, 8 insertions(+), 4 deletions(-)
Index: branches/scool-ng/tests/class/c++_ast/inheritance_004.aterm (deleted)
===================================================================
Index: branches/scool-ng/tests/class/c++_ast/declaration_002.aterm
===================================================================
--- branches/scool-ng/tests/class/c++_ast/declaration_002.aterm (revision 114)
+++ branches/scool-ng/tests/class/c++_ast/declaration_002.aterm (revision 115)
@@ -1 +1 @@
-CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Bar"),[]),CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[("public",CxxType(CxxId("Bar"),[CxxId("Exact")]))])])
+CxxProgram([CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Bar"),[]),CxxClassDecl([(CxxType("typename"),"Exact")],CxxId("Foo"),[])])
Index: branches/scool-ng/tests/class/c++_src/inheritance_004.cc (deleted)
===================================================================
Index: branches/scool-ng/tests/class/c++_src/declaration_002.cc
===================================================================
--- branches/scool-ng/tests/class/c++_src/declaration_002.cc (revision 114)
+++ branches/scool-ng/tests/class/c++_src/declaration_002.cc (revision 115)
@@ -1,4 +1,4 @@
template < typename Exact >
class Bar;
template < typename Exact >
-class Foo : public Bar< Exact >;
+class Foo;
Index: branches/scool-ng/tests/class/scool_ast/inheritance_004.aterm
===================================================================
--- branches/scool-ng/tests/class/scool_ast/inheritance_004.aterm (revision 114)
+++ branches/scool-ng/tests/class/scool_ast/inheritance_004.aterm (revision 115)
@@ -1 +1 @@
-Program([ClassDefinition(None,Identifier("Cat"),Some(ClassWhereClause([Inherits("Cat",StaticFunctionCall(Identifier("Foo"),Parameters([Integer("42")])))])),ClassBlock([]))])
+Program([StaticClassFunction(None,Identifier("Foo"),ParametersDeclaration([TypedId(Identifier("I"),SimpleType("int"))]),StaticClassBlock([])),ClassDefinition(None,Identifier("Cat"),Some(ClassWhereClause([Inherits("Cat",StaticFunctionCall(Identifier("Foo"),Parameters([Integer("42")])))])),ClassBlock([]))])
Index: branches/scool-ng/tests/class/scool_src/inheritance_004.scl
===================================================================
--- branches/scool-ng/tests/class/scool_src/inheritance_004.scl (revision 114)
+++ branches/scool-ng/tests/class/scool_src/inheritance_004.scl (revision 115)
@@ -1,3 +1,7 @@
+Foo : [I : int ] -> class =
+{
+}
+
Cat : class where Cat -> Foo[42] =
{
}
Index: branches/scool-ng/tests/class/c++_build/declaration_002.g++
===================================================================
Index: branches/scool-ng/tests/config
===================================================================
--- branches/scool-ng/tests/config (revision 114)
+++ branches/scool-ng/tests/config (revision 115)
@@ -1,4 +1,4 @@
-number_of_tests=3
+number_of_tests=4
test_1 ()
{
--
\__/ \__/
(00) Maxime `yabo` van Noppen (00)
___) \ Epita 2009 / (___
(_____/ \_____)