diff options
| author | Christopher Trudeau <ctrudeau@arsensa.com> | 2021-06-21 16:25:58 -0400 |
|---|---|---|
| committer | Christopher Trudeau <ctrudeau@arsensa.com> | 2021-06-21 16:25:58 -0400 |
| commit | fbdcfa8066f98d896c2a746aa4fc6d5869f7e8d2 (patch) | |
| tree | 7a470bdef2d0a36d0bd7ca1d9ae9df116d0717e2 /tests/examplefiles/nodejsrepl | |
| parent | 18a7fdb2ce1695e471071f7d635cb98de6080ee8 (diff) | |
| download | pygments-git-fbdcfa8066f98d896c2a746aa4fc6d5869f7e8d2.tar.gz | |
Changes from code review:
- renamed nodecon to nodejsrepl
- removed bad mimetypes
Diffstat (limited to 'tests/examplefiles/nodejsrepl')
| -rw-r--r-- | tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl | 20 | ||||
| -rw-r--r-- | tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl.output | 112 |
2 files changed, 132 insertions, 0 deletions
diff --git a/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl b/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl new file mode 100644 index 00000000..7679d9ce --- /dev/null +++ b/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl @@ -0,0 +1,20 @@ +// Node.js REPL Session +> let a = 3 +undefined +> a +3 +> let b = '4' +undefined +> b +'4' +> b == a +false +> b === a +false +> if(a) { +... console.log(a) +... } +3 +undefined +> c +Uncaught ReferenceError: c is not defined diff --git a/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl.output b/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl.output new file mode 100644 index 00000000..28c5c3a5 --- /dev/null +++ b/tests/examplefiles/nodejsrepl/nodejsrepl_test.nodejsrepl.output @@ -0,0 +1,112 @@ +'' Text +'// Node.js REPL Session\n' Comment.Single + +'> ' Generic.Prompt +'let' Keyword.Declaration +' ' Text +'a' Name.Other +' ' Text +'=' Operator +' ' Text +'3' Literal.Number.Float +'\n' Text + +'undefined' Keyword.Constant +'\n' Text + +'> ' Generic.Prompt +'a' Name.Other +'\n' Text + +'3' Literal.Number.Float +'\n' Text + +'> ' Generic.Prompt +'let' Keyword.Declaration +' ' Text +'b' Name.Other +' ' Text +'=' Operator +' ' Text +"'4'" Literal.String.Single +'\n' Text + +'undefined' Keyword.Constant +'\n' Text + +'> ' Generic.Prompt +'b' Name.Other +'\n' Text + +"'4'" Literal.String.Single +'\n' Text + +'> ' Generic.Prompt +'b' Name.Other +' ' Text +'==' Operator +' ' Text +'a' Name.Other +'\n' Text + +'false' Keyword.Constant +'\n' Text + +'> ' Generic.Prompt +'b' Name.Other +' ' Text +'===' Operator +' ' Text +'a' Name.Other +'\n' Text + +'false' Keyword.Constant +'\n' Text + +'> ' Generic.Prompt +'if' Keyword +'(' Punctuation +'a' Name.Other +')' Punctuation +' ' Text +'{' Punctuation +'\n' Text + +'...' Generic.Prompt +' ' Text +'console' Name.Other +'.' Punctuation +'log' Name.Other +'(' Punctuation +'a' Name.Other +')' Punctuation +'\n' Text + +'...' Generic.Prompt +' ' Text +'}' Punctuation +'\n' Text + +'3' Literal.Number.Float +'\n' Text + +'undefined' Keyword.Constant +'\n' Text + +'> ' Generic.Prompt +'c' Name.Other +'\n' Text + +'Uncaught' Name.Other +' ' Text +'ReferenceError' Name.Other +':' Operator +' ' Text +'c' Name.Other +' ' Text +'is' Name.Other +' ' Text +'not' Name.Other +' ' Text +'defined' Name.Other +'\n' Text |
