|
From: <ma...@us...> - 2010-12-09 17:49:15
|
Revision: 1010
http://scstudio.svn.sourceforge.net/scstudio/?rev=1010&view=rev
Author: madzin
Date: 2010-12-09 17:49:09 +0000 (Thu, 09 Dec 2010)
Log Message:
-----------
Add test and repair small bug in the export
Modified Paths:
--------------
trunk/src/data/Z120/z120_save.cpp
trunk/tests/z120_test/CMakeLists.txt
Added Paths:
-----------
trunk/tests/z120_test/z120_test91.mpr
trunk/tests/z120_test/z120_test91.mpr.result
trunk/tests/z120_test/z120_test92.mpr
trunk/tests/z120_test/z120_test92.mpr.result
Modified: trunk/src/data/Z120/z120_save.cpp
===================================================================
--- trunk/src/data/Z120/z120_save.cpp 2010-12-09 16:19:51 UTC (rev 1009)
+++ trunk/src/data/Z120/z120_save.cpp 2010-12-09 17:49:09 UTC (rev 1010)
@@ -225,6 +225,8 @@
// double the apostrophe
os << "''";
}
+ else
+ os << "'";
was_replacement = false;
}
Modified: trunk/tests/z120_test/CMakeLists.txt
===================================================================
--- trunk/tests/z120_test/CMakeLists.txt 2010-12-09 16:19:51 UTC (rev 1009)
+++ trunk/tests/z120_test/CMakeLists.txt 2010-12-09 17:49:09 UTC (rev 1010)
@@ -98,6 +98,8 @@
ADD_Z120_TEST(z120_test88.mpr 1)
ADD_Z120_TEST(z120_test89.mpr 1)
ADD_Z120_TEST(z120_test90.mpr 1)
+ADD_Z120_TEST(z120_test91.mpr 1)
+ADD_Z120_TEST(z120_test92.mpr 1)
ADD_Z120_TEST(z120_time01.mpr 1)
ADD_Z120_TEST(z120_time02.mpr 1)
Added: trunk/tests/z120_test/z120_test91.mpr
===================================================================
--- trunk/tests/z120_test/z120_test91.mpr (rev 0)
+++ trunk/tests/z120_test/z120_test91.mpr 2010-12-09 17:49:09 UTC (rev 1010)
@@ -0,0 +1,20 @@
+/*****************************************************
+Simple test of bmsc (event driven notification)
+
+******************************************************/
+
+ms!cdocument bbb;
+msc pok2;
+A: instance;
+B: instance;
+A: in A,1 from found;
+A: out jedna,2 to B;
+B: in jedna,2 from A;
+A: concurrent;
+A: out B1,3 to B;
+B: in B1,3 from A;
+A: out B,4 to lost;
+A: endconcurrent;
+A: endinstance;
+B: endinstance;
+endmsc;
Added: trunk/tests/z120_test/z120_test91.mpr.result
===================================================================
--- trunk/tests/z120_test/z120_test91.mpr.result (rev 0)
+++ trunk/tests/z120_test/z120_test91.mpr.result 2010-12-09 17:49:09 UTC (rev 1010)
@@ -0,0 +1,2 @@
+z120_test91.mpr[6,3]: Lexer error
+Error 22: Syntax error
Added: trunk/tests/z120_test/z120_test92.mpr
===================================================================
--- trunk/tests/z120_test/z120_test92.mpr (rev 0)
+++ trunk/tests/z120_test/z120_test92.mpr 2010-12-09 17:49:09 UTC (rev 1010)
@@ -0,0 +1,21 @@
+mscdocument z120_test90;
+msc Page_1;
+inst a;
+inst c;
+inst b;
+text 'text';
+a: instance;
+out 1,0 to b;
+in 4,1 from b;
+endinstance;
+c: instance;
+in 2,2 from b;
+out 3,3 to b;
+endinstance;
+b: instance;
+in 1,0 from a comment 'Ev''ent ';
+out 2,2 to c;
+in 3,3 from c;
+out 4,1 to a;
+endinstance;
+endmsc;
Added: trunk/tests/z120_test/z120_test92.mpr.result
===================================================================
--- trunk/tests/z120_test/z120_test92.mpr.result (rev 0)
+++ trunk/tests/z120_test/z120_test92.mpr.result 2010-12-09 17:49:09 UTC (rev 1010)
@@ -0,0 +1,23 @@
+OK: z120_test92 is correct, should be correct
+
+mscdocument z120_test92;
+msc Page_1;
+inst a;
+inst c;
+inst b;
+text 'text';
+a: instance;
+out 1,0 to b;
+in 4,1 from b;
+endinstance;
+c: instance;
+in 2,2 from b;
+out 3,3 to b;
+endinstance;
+b: instance;
+in 1,0 from a comment 'Ev''ent ';
+out 2,2 to c;
+in 3,3 from c;
+out 4,1 to a;
+endinstance;
+endmsc;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|