We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 958142c + 6988c87 commit a6bf257Copy full SHA for a6bf257
bases/rsptx/interactives/runestone/activecode/js/livecode.js
@@ -67,11 +67,11 @@ export default class LiveCode extends ActiveCode {
67
let combinedSuffix = this.getCombinedSuffixes();
68
69
// import used to detect java unit tests is historically assumed to always be in suffix
70
- if( this.language === "java")
+ if (this.language === "java")
71
return combinedSuffix.indexOf("import org.junit") > -1;
72
73
// cpp unit test include may be in suffix or hidden prefix code
74
- if (this.language !== "cpp")
+ if (this.language === "cpp")
75
return combinedSuffix.indexOf("doctest.h") > -1 || this.prefix.indexOf("doctest.h") > -1;
76
77
return false;
0 commit comments