|
@@ -257,4 +257,13 @@ test("Test - factorial of ten", () => {
|
|
|
});
|
|
|
cb.run();
|
|
|
expect(output.out).toBe("3628800");
|
|
|
+});
|
|
|
+
|
|
|
+test("Test - quine", () => {
|
|
|
+ const output = new OutputJoiner("");
|
|
|
+ const cb = new CodeBox(`"r00gol?!;40.`, [], {
|
|
|
+ outputCallback: output.push.bind(output),
|
|
|
+ });
|
|
|
+ cb.run();
|
|
|
+ expect(output.out).toBe('"r00gol?!;40.');
|
|
|
});
|