summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-07 13:29:40 -0700
committerTim Hatch <tim@timhatch.com>2014-10-07 13:29:40 -0700
commit292b11fdfa96f33f40380a1053b65a2d5f344783 (patch)
tree317dc69ac42f77ca8714de4ea12ff9bc5102a897 /tests
parenta34c60a2e073e9ddaa46f976064cf864125affbb (diff)
parent34d2f291d161ac07e090a597660c9fb383b9522b (diff)
downloadpygments-292b11fdfa96f33f40380a1053b65a2d5f344783.tar.gz
Merge with -main
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/interp.scala10
-rw-r--r--tests/examplefiles/unicode.js5
-rw-r--r--tests/examplefiles/vpath.mk16
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/examplefiles/interp.scala b/tests/examplefiles/interp.scala
new file mode 100644
index 00000000..4131b75e
--- /dev/null
+++ b/tests/examplefiles/interp.scala
@@ -0,0 +1,10 @@
+val n = 123;
+val a = s"n=$n";
+val a2 = s"n=$n''";
+val b = s"""n=$n""";
+val c = f"n=$n%f";
+val d = f"""n=$n%f""";
+val d2 = s"""a"""";
+val e = s"abc\u00e9";
+val f = s"a${n}b";
+val g = s"a${n + 1}b";
diff --git a/tests/examplefiles/unicode.js b/tests/examplefiles/unicode.js
new file mode 100644
index 00000000..e77bfb80
--- /dev/null
+++ b/tests/examplefiles/unicode.js
@@ -0,0 +1,5 @@
+var école;
+var sinθ;
+var เมือง;
+var a\u1234b;
+
diff --git a/tests/examplefiles/vpath.mk b/tests/examplefiles/vpath.mk
new file mode 100644
index 00000000..a7f18fc3
--- /dev/null
+++ b/tests/examplefiles/vpath.mk
@@ -0,0 +1,16 @@
+vpath %.c src
+vpath %.h header
+EXEC=hello
+SRC= hello.c main.c
+OBJ= $(SRC:.c=.o)
+
+all: $(EXEC)
+
+hello: $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+main.o: hello.h
+
+%.o: %.c
+ $(CC) -I header -o $@ \
+ -c $< $(CFLAGS)