|
@@ -819,7 +819,7 @@ for [1, b] in x {
|
|
|
}
|
|
|
`, vs)
|
|
|
|
|
|
- if err == nil || err.Error() != "ECAL error in ECALTestRuntime: Invalid construct (Must have a list of simple variables on the left side of the In expression) (Line:3 Pos:1)" {
|
|
|
+ if err == nil || err.Error() != "ECAL error in ECALTestRuntime (ECALEvalTest): Invalid construct (Must have a list of simple variables on the left side of the In expression) (Line:3 Pos:1)" {
|
|
|
t.Error("Unexpected result:", err)
|
|
|
return
|
|
|
}
|
|
@@ -877,7 +877,7 @@ for a[t] in 1 {
|
|
|
}
|
|
|
`[1:], vs)
|
|
|
|
|
|
- if err == nil || err.Error() != "ECAL error in ECALTestRuntime: Invalid construct (Must have a simple variable on the left side of the In expression) (Line:1 Pos:1)" {
|
|
|
+ if err == nil || err.Error() != "ECAL error in ECALTestRuntime (ECALEvalTest): Invalid construct (Must have a simple variable on the left side of the In expression) (Line:1 Pos:1)" {
|
|
|
t.Error("Unexpected result:", err)
|
|
|
return
|
|
|
}
|
|
@@ -887,7 +887,7 @@ for [a, b] in [[1,2],[3,4],3] {
|
|
|
}
|
|
|
`[1:], vs)
|
|
|
|
|
|
- if err == nil || err.Error() != "ECAL error in ECALTestRuntime: Runtime error (Result for loop variable is not a list (value is 3)) (Line:1 Pos:1)" {
|
|
|
+ if err == nil || err.Error() != "ECAL error in ECALTestRuntime (ECALEvalTest): Runtime error (Result for loop variable is not a list (value is 3)) (Line:1 Pos:1)" {
|
|
|
t.Error("Unexpected result:", err)
|
|
|
return
|
|
|
}
|
|
@@ -897,7 +897,7 @@ for [a, b] in [[1,2],[3,4],[5,6,7]] {
|
|
|
}
|
|
|
`[1:], vs)
|
|
|
|
|
|
- if err == nil || err.Error() != "ECAL error in ECALTestRuntime: Runtime error (Assigned number of variables is different to number of values (2 variables vs 3 values)) (Line:1 Pos:1)" {
|
|
|
+ if err == nil || err.Error() != "ECAL error in ECALTestRuntime (ECALEvalTest): Runtime error (Assigned number of variables is different to number of values (2 variables vs 3 values)) (Line:1 Pos:1)" {
|
|
|
t.Error("Unexpected result:", err)
|
|
|
return
|
|
|
}
|
|
@@ -962,10 +962,10 @@ error: Something happened: {
|
|
|
3
|
|
|
],
|
|
|
"detail": "",
|
|
|
- "error": "ECAL error in ECALTestRuntime: test 12 () (Line:4 Pos:5)",
|
|
|
+ "error": "ECAL error in ECALTestRuntime (ECALEvalTest): test 12 () (Line:4 Pos:5)",
|
|
|
"line": 4,
|
|
|
"pos": 5,
|
|
|
- "source": "ECALTestRuntime",
|
|
|
+ "source": "ECALTestRuntime (ECALEvalTest)",
|
|
|
"trace": [
|
|
|
"raise(\"test 12\", null, [1, 2, 3]) (ECALEvalTest:4)"
|
|
|
],
|
|
@@ -1011,10 +1011,10 @@ error: Something else happened: {
|
|
|
3
|
|
|
],
|
|
|
"detail": "",
|
|
|
- "error": "ECAL error in ECALTestRuntime: test 13 () (Line:4 Pos:5)",
|
|
|
+ "error": "ECAL error in ECALTestRuntime (ECALEvalTest): test 13 () (Line:4 Pos:5)",
|
|
|
"line": 4,
|
|
|
"pos": 5,
|
|
|
- "source": "ECALTestRuntime",
|
|
|
+ "source": "ECALTestRuntime (ECALEvalTest)",
|
|
|
"trace": [
|
|
|
"raise(\"test 13\", null, [1, 2, 3]) (ECALEvalTest:4)"
|
|
|
],
|
|
@@ -1022,10 +1022,10 @@ error: Something else happened: {
|
|
|
}
|
|
|
Runtime error: {
|
|
|
"detail": "a=NULL",
|
|
|
- "error": "ECAL error in ECALTestRuntime: Operand is not a number (a=NULL) (Line:11 Pos:12)",
|
|
|
+ "error": "ECAL error in ECALTestRuntime (ECALEvalTest): Operand is not a number (a=NULL) (Line:11 Pos:12)",
|
|
|
"line": 11,
|
|
|
"pos": 12,
|
|
|
- "source": "ECALTestRuntime",
|
|
|
+ "source": "ECALTestRuntime (ECALEvalTest)",
|
|
|
"trace": [],
|
|
|
"type": "Operand is not a number"
|
|
|
}
|
|
@@ -1076,18 +1076,18 @@ try {
|
|
|
error: {
|
|
|
"data": {
|
|
|
"detail": "a",
|
|
|
- "error": "ECAL error in ECALTestRuntime: Operand is not a number (a) (Line:4 Pos:12)",
|
|
|
+ "error": "ECAL error in ECALTestRuntime (ECALEvalTest): Operand is not a number (a) (Line:4 Pos:12)",
|
|
|
"line": 4,
|
|
|
"pos": 12,
|
|
|
- "source": "ECALTestRuntime",
|
|
|
+ "source": "ECALTestRuntime (ECALEvalTest)",
|
|
|
"trace": [],
|
|
|
"type": "Operand is not a number"
|
|
|
},
|
|
|
"detail": "This did not work",
|
|
|
- "error": "ECAL error in ECALTestRuntime: usererror (This did not work) (Line:6 Pos:3)",
|
|
|
+ "error": "ECAL error in ECALTestRuntime (ECALEvalTest): usererror (This did not work) (Line:6 Pos:3)",
|
|
|
"line": 6,
|
|
|
"pos": 3,
|
|
|
- "source": "ECALTestRuntime",
|
|
|
+ "source": "ECALTestRuntime (ECALEvalTest)",
|
|
|
"trace": [
|
|
|
"raise(\"usererror\", \"This did not work\", e) (ECALEvalTest:6)"
|
|
|
],
|