#.require. clr # some simple string subst formatting tests - .Net format descriptions namespace Test class Test def main is shared # formatting mol as int = 42 assert '[mol:N]'=='42.00' assert "[mol:N]"=='42.00' # test some the old way without the escape syntax. a = 99 t = String.format('a = {0}[a]]', c'[') assert t == r'a = [99]' s10 = 'FMT:a = '+ ns'[' +'[a]]' assert s10 == r'FMT:a = [99]'