File: fix-test-lib

package info (click to toggle)
storm-lang 0.6.28-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 51,212 kB
  • sloc: ansic: 261,320; cpp: 126,508; sh: 14,847; perl: 9,846; python: 2,525; lisp: 2,353; asm: 860; makefile: 671; java: 52; xml: 37; awk: 12
file content (23 lines) | stat: -rw-r--r-- 697 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Backport of minor issues in the unit test library.
Forwarded: in-commit-6713dfd8a5cb848862033309506fd3ec3ecef947
Author: Filip Strömbäck <filip@fprg.se>
--- a/root/test/syntax.bs
+++ b/root/test/syntax.bs
@@ -186,7 +186,7 @@
 	ConcatExpr msg(pos, fail);
 	msg.append(StrLiteral(pos, "Failed: ${exprText} ==> "));
 	msg.append(l);
-	msg.append(StrLiteral(pos, " ${op.name} "));
+	msg.append(StrLiteral(pos, " ${reverseName(op.name)} "));
 	msg.append(r);
 
 	fail.add(FnCall(pos, fail.scope, named{print<Str>}, Actuals(msg)));
@@ -212,7 +212,7 @@
 	else if (original == "is")
 		return "!is";
 	else if (original == "!is")
-		return is;
+		return "is";
 	return "!" + original;
 }