From 562b3a3143199727eba1b6b24dba860a76a7b238 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 6 Aug 2015 23:49:56 -0700 Subject: [PATCH] Add test cases for #233 and #232 --- tests/tc012/expected1.txt | 2 ++ tests/tc012/file.d | 11 +++++++++++ tests/tc012/run.sh | 5 +++++ tests/tc013/file.d | 7 +++++++ 4 files changed, 25 insertions(+) create mode 100644 tests/tc012/expected1.txt create mode 100644 tests/tc012/file.d create mode 100755 tests/tc012/run.sh create mode 100644 tests/tc013/file.d diff --git a/tests/tc012/expected1.txt b/tests/tc012/expected1.txt new file mode 100644 index 0000000..8dc55ab --- /dev/null +++ b/tests/tc012/expected1.txt @@ -0,0 +1,2 @@ +identifiers +stdio M diff --git a/tests/tc012/file.d b/tests/tc012/file.d new file mode 100644 index 0000000..d5fa557 --- /dev/null +++ b/tests/tc012/file.d @@ -0,0 +1,11 @@ +import std.stdio; + +unittest +{ + std. +} + +unittest +{ + std.stdio. +} diff --git a/tests/tc012/run.sh b/tests/tc012/run.sh new file mode 100755 index 0000000..1351484 --- /dev/null +++ b/tests/tc012/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +dcd-client file.d -c48 > actual1.txt +diff actual1.txt expected1.txt diff --git a/tests/tc013/file.d b/tests/tc013/file.d new file mode 100644 index 0000000..41e6b63 --- /dev/null +++ b/tests/tc013/file.d @@ -0,0 +1,7 @@ +alias da_SDL_GL_GetDrawableSize = void function( SDL_Window*, int*, int* ); +da_SDL_GL_GetDrawableSize SDL_GL_GetDrawableSize; + +unittest +{ + SDL_GL_GetDrawableSize( +}