Skip to content

Commit a6bf257

Browse files
committed
Merge branch 'main' of github.com:RunestoneInteractive/rs
2 parents 958142c + 6988c87 commit a6bf257

File tree

1 file changed

+2
-2
lines changed
  • bases/rsptx/interactives/runestone/activecode/js

1 file changed

+2
-2
lines changed

bases/rsptx/interactives/runestone/activecode/js/livecode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ export default class LiveCode extends ActiveCode {
6767
let combinedSuffix = this.getCombinedSuffixes();
6868

6969
// import used to detect java unit tests is historically assumed to always be in suffix
70-
if( this.language === "java")
70+
if (this.language === "java")
7171
return combinedSuffix.indexOf("import org.junit") > -1;
7272

7373
// cpp unit test include may be in suffix or hidden prefix code
74-
if (this.language !== "cpp")
74+
if (this.language === "cpp")
7575
return combinedSuffix.indexOf("doctest.h") > -1 || this.prefix.indexOf("doctest.h") > -1;
7676

7777
return false;

0 commit comments

Comments
 (0)