Last change
on this file since 272 was 270, checked in by coas-nagasima, 7 years ago |
mruby版ECNLプロトタイピング・ツールを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby
|
File size:
235 bytes
|
Rev | Line | |
---|
[270] | 1 | #assert('Kernel.sprintf') do
|
---|
| 2 | #end
|
---|
| 3 |
|
---|
| 4 | assert('String#%') do
|
---|
| 5 | assert_equal "one=1", "one=%d" % 1
|
---|
| 6 | assert_equal "1 one 1.0", "%d %s %3.1f" % [ 1, "one", 1.01 ]
|
---|
| 7 | assert_equal "123 < 456", "%{num} < %<str>s" % { num: 123, str: "456" }
|
---|
| 8 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.