Branch: Tag:

2014-12-04

2014-12-04 19:26:16 by Martin Nilsson <nilsson@opera.com>

Somehow this test framework cleanup triggers a core dump for me.

7579:   // typeof   test_eq(sprintf("%O", typeof(1)),"int(1..1)")   test_eq(sprintf("%O", typeof("")),"string(zero)") - test_any([[ -  // Suppress warnings. -  class handler { -  void compile_warning (string file, int line, string err) {}; -  }; -  return compile_string("string s = sprintf(\"%O\", typeof(\"\"[0]));", -  "-", handler())()->s; - ]], "zero") + ignore_warning("Indexing the empty string.", [[ +  test_aq([[ sprintf("%O", typeof(""[0])) ]], "zero") + ]])   test_eq(sprintf("%O", typeof(0.0)),"float")   test_eq(sprintf("%O", typeof(all_constants()["all_constants"])),"mixed")