File: comments.mpt

package info (click to toggle)
mathpiper 0.0.svn2556-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,416 kB
  • ctags: 2,729
  • sloc: java: 21,643; xml: 751; sh: 105; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

NextTest("Checking comment syntax supported");
[
  Local(a);
  /* something here */
  a:= 3;
  // test 1

  // /* test2 */

  /* // test3 */

  //Echo({a, Nl()});

  // Check parsing
  a==-b; // This would generate a parse error in Yacas versions 1.0.54 and earlier
];


[
  Local(errorString);
  errorString:="";
  TrapError(Check(False,"some error"),errorString:=GetCoreError());
  Verify(IsString(errorString),True);
  Verify(Length(errorString)>4,True);  
];
Verify(errorString,errorString);