math-exercises 3.0.174 → 3.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"varLineVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/varLineVEA.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"varLineVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/varLineVEA.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,YAoClE,CAAC"}
|
|
@@ -29,19 +29,22 @@ export const varLineVEA = (ans, answerTable) => {
|
|
|
29
29
|
return false;
|
|
30
30
|
for (let i = 0; i < flattenedAns.length; i++) {
|
|
31
31
|
const value = flattenedAns[i];
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
32
|
+
if (flattenedAnswerTable[i] === "\\nearrow") {
|
|
33
|
+
if (value !== "\\nearrow")
|
|
34
34
|
return false;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
else if (
|
|
38
|
-
if (
|
|
37
|
+
else if (flattenedAnswerTable[i] === "\\searrow") {
|
|
38
|
+
if (value !== "\\searrow")
|
|
39
39
|
return false;
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
|
|
44
|
-
rationalVEA(value, flattenedAnswerTable[i])
|
|
43
|
+
const isValid = (!isValue(value) && !isValue(flattenedAnswerTable[i])) ||
|
|
44
|
+
rationalVEA(value, flattenedAnswerTable[i]);
|
|
45
|
+
if (!isValid)
|
|
46
|
+
return false;
|
|
47
|
+
continue;
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
return true;
|