diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-07 13:29:40 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-07 13:29:40 -0700 |
commit | 292b11fdfa96f33f40380a1053b65a2d5f344783 (patch) | |
tree | 317dc69ac42f77ca8714de4ea12ff9bc5102a897 /tests | |
parent | a34c60a2e073e9ddaa46f976064cf864125affbb (diff) | |
parent | 34d2f291d161ac07e090a597660c9fb383b9522b (diff) | |
download | pygments-292b11fdfa96f33f40380a1053b65a2d5f344783.tar.gz |
Merge with -main
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/interp.scala | 10 | ||||
-rw-r--r-- | tests/examplefiles/unicode.js | 5 | ||||
-rw-r--r-- | tests/examplefiles/vpath.mk | 16 |
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) |