PageRenderTime 67ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 14ms app.codeStats 0ms

/trunk/Examples/test-suite/d/apply_strings_runme.1.d

#
D | 12 lines | 9 code | 3 blank | 0 comment | 5 complexity | 155556785288576ffc33fdbf17482ba8 MD5 | raw file
 1module apply_strings_runme;
 2
 3import apply_strings.apply_strings;
 4
 5const char[] TEST_MESSAGE = "A message from target language to the C++ world and back again.";
 6
 7void main() {
 8  if (UCharFunction(TEST_MESSAGE) != TEST_MESSAGE) throw new Exception("UCharFunction failed");
 9  if (SCharFunction(TEST_MESSAGE) != TEST_MESSAGE) throw new Exception("SCharFunction failed");
10  auto pChar = CharFunction(null);
11  if (pChar !is null) throw new Exception("CharFunction failed");
12}