Skip to content

Commit 1348bc2

Browse files
committed
add test case for rubychan/coderay#212
1 parent ca03ae4 commit 1348bc2

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

java/nonascii.expected.raydebug

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
comment(/* package whatever; // don't place package name! */)
2+
3+
keyword(import) include(java.util)operator(.)operator(*)operator(;)
4+
keyword(import) include(java.lang)operator(.)operator(*)operator(;)
5+
keyword(import) include(java.io)operator(.)operator(*)operator(;)
6+
7+
comment(/* Name of the class has to be "Main" only if the class is public. */)
8+
type(class) class(Ideone)
9+
operator({)
10+
directive(public) directive(static) type(void) ident(main) operator(()predefined_type(String)type([]) ident(args)operator(\)) directive(throws) ident(java)operator(.)ident(lang)operator(.)ident(Exception)
11+
operator({)
12+
type(double) ident(δ) operator(=) integer(2)operator(;)
13+
predefined_type(System)operator(.)ident(out)operator(.)ident(println)operator(()ident(δ)operator(\))operator(;)
14+
operator(})
15+
operator(})

java/nonascii.in.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* package whatever; // don't place package name! */
2+
3+
import java.util.*;
4+
import java.lang.*;
5+
import java.io.*;
6+
7+
/* Name of the class has to be "Main" only if the class is public. */
8+
class Ideone
9+
{
10+
public static void main (String[] args) throws java.lang.Exception
11+
{
12+
double δ = 2;
13+
System.out.println(δ);
14+
}
15+
}

0 commit comments

Comments
 (0)