From c5e5f0b97f0a161f6b66ccdc5f4f501596ba9117 Mon Sep 17 00:00:00 2001 From: Ayman Nadeem Date: Tue, 24 Jul 2018 15:29:54 -0400 Subject: [PATCH] test float --- .../java/corpus/{float.java => Float.A.java} | 0 test/fixtures/java/corpus/Float.B.java | 7 +++++ test/fixtures/java/corpus/Float.diffA-B.txt | 30 +++++++++++++++++++ test/fixtures/java/corpus/Float.diffB-A.txt | 30 +++++++++++++++++++ test/fixtures/java/corpus/Float.parseA.txt | 16 ++++++++++ test/fixtures/java/corpus/Float.parseB.txt | 30 +++++++++++++++++++ 6 files changed, 113 insertions(+) rename test/fixtures/java/corpus/{float.java => Float.A.java} (100%) create mode 100644 test/fixtures/java/corpus/Float.B.java create mode 100644 test/fixtures/java/corpus/Float.diffA-B.txt create mode 100644 test/fixtures/java/corpus/Float.diffB-A.txt create mode 100644 test/fixtures/java/corpus/Float.parseA.txt create mode 100644 test/fixtures/java/corpus/Float.parseB.txt diff --git a/test/fixtures/java/corpus/float.java b/test/fixtures/java/corpus/Float.A.java similarity index 100% rename from test/fixtures/java/corpus/float.java rename to test/fixtures/java/corpus/Float.A.java diff --git a/test/fixtures/java/corpus/Float.B.java b/test/fixtures/java/corpus/Float.B.java new file mode 100644 index 000000000..d71cc553f --- /dev/null +++ b/test/fixtures/java/corpus/Float.B.java @@ -0,0 +1,7 @@ +public class Point { + void dinosaur() { + Float x = 10.0; + Float y = 20.0; + System.out.print(x + y); + } +} diff --git a/test/fixtures/java/corpus/Float.diffA-B.txt b/test/fixtures/java/corpus/Float.diffA-B.txt new file mode 100644 index 000000000..605621b28 --- /dev/null +++ b/test/fixtures/java/corpus/Float.diffA-B.txt @@ -0,0 +1,30 @@ +(Statements + (Class + (AccessibilityModifier) + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Statements + (Assignment + (Variable + (Identifier) + (Identifier)) + (Float))) + {+(Statements + {+(Assignment + {+(Variable + {+(Identifier)+} + {+(Identifier)+})+} + {+(Float)+})+})+} + {+(Call + {+(MemberAccess + {+(MemberAccess + {+(Identifier)+})+})+} + {+(Plus + {+(Identifier)+} + {+(Identifier)+})+} + {+(Empty)+})+}))))) diff --git a/test/fixtures/java/corpus/Float.diffB-A.txt b/test/fixtures/java/corpus/Float.diffB-A.txt new file mode 100644 index 000000000..f7aedeafd --- /dev/null +++ b/test/fixtures/java/corpus/Float.diffB-A.txt @@ -0,0 +1,30 @@ +(Statements + (Class + (AccessibilityModifier) + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Statements + (Assignment + (Variable + (Identifier) + (Identifier)) + (Float))) + {-(Statements + {-(Assignment + {-(Variable + {-(Identifier)-} + {-(Identifier)-})-} + {-(Float)-})-})-} + {-(Call + {-(MemberAccess + {-(MemberAccess + {-(Identifier)-})-})-} + {-(Plus + {-(Identifier)-} + {-(Identifier)-})-} + {-(Empty)-})-}))))) diff --git a/test/fixtures/java/corpus/Float.parseA.txt b/test/fixtures/java/corpus/Float.parseA.txt new file mode 100644 index 000000000..b01dd9c51 --- /dev/null +++ b/test/fixtures/java/corpus/Float.parseA.txt @@ -0,0 +1,16 @@ +(Statements + (Class + (AccessibilityModifier) + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Statements + (Assignment + (Variable + (Identifier) + (Identifier)) + (Float)))))))) diff --git a/test/fixtures/java/corpus/Float.parseB.txt b/test/fixtures/java/corpus/Float.parseB.txt new file mode 100644 index 000000000..699bc4b79 --- /dev/null +++ b/test/fixtures/java/corpus/Float.parseB.txt @@ -0,0 +1,30 @@ +(Statements + (Class + (AccessibilityModifier) + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Statements + (Assignment + (Variable + (Identifier) + (Identifier)) + (Float))) + (Statements + (Assignment + (Variable + (Identifier) + (Identifier)) + (Float))) + (Call + (MemberAccess + (MemberAccess + (Identifier))) + (Plus + (Identifier) + (Identifier)) + (Empty)))))))