Branch: Tag:

2014-08-27

2014-08-27 01:07:44 by Martin Nilsson <nilsson@opera.com>

Readded the CPP test of #if constant and moved the String.Buffer test to the other String.Buffer tests.

9931:   ]],1)      test_any([[ -  String.Buffer a=String.Buffer(),b=String.Buffer(); -  a->add("Testing"); -  a->addat(0, "Is that sentence"); -  a->putchar(','); -  a->add(" the concluding three ", "words"); -  a->add(" `were left out'"); -  a->addat(3,"th","is"); -  a[1]=a[10]; -  b->add("Test me harder"); -  b->add(a); -  if(b->cut(5,6) != "me") + #if constant(String.Buffer) + return 1; + #else   return 0; -  b->cut(0,11,1); -  return a[3..6] == "this" && a->get_copy() ==(string)b && a->get() -  == "In this sentence, the concluding three words `were left out'"; + #endif   ]],1)      test_any([[