diff options
Diffstat (limited to 'spec/outputs/codes_from_doc.lua')
| -rw-r--r-- | spec/outputs/codes_from_doc.lua | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 085179c..f1e46d9 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
| @@ -209,14 +209,16 @@ for _key_0, _value_0 in pairs(b) do | |||
| 209 | end | 209 | end |
| 210 | end | 210 | end |
| 211 | merge = _tab_0 | 211 | merge = _tab_0 |
| 212 | print((function() | 212 | local last |
| 213 | do | ||
| 213 | local _item_0 = data.items | 214 | local _item_0 = data.items |
| 214 | return _item_0[#_item_0] | 215 | last = _item_0[#_item_0] |
| 215 | end)()) | 216 | end |
| 216 | print((function() | 217 | local second_last |
| 218 | do | ||
| 217 | local _item_0 = data.items | 219 | local _item_0 = data.items |
| 218 | return _item_0[#_item_0 - 1] | 220 | second_last = _item_0[#_item_0 - 1] |
| 219 | end)()) | 221 | end |
| 220 | local mt = { } | 222 | local mt = { } |
| 221 | local add | 223 | local add |
| 222 | add = function(self, right) | 224 | add = function(self, right) |
| @@ -2603,14 +2605,16 @@ for _key_0, _value_0 in pairs(b) do | |||
| 2603 | end | 2605 | end |
| 2604 | end | 2606 | end |
| 2605 | merge = _tab_0 | 2607 | merge = _tab_0 |
| 2606 | print((function() | 2608 | local last |
| 2609 | do | ||
| 2607 | local _item_0 = data.items | 2610 | local _item_0 = data.items |
| 2608 | return _item_0[#_item_0] | 2611 | last = _item_0[#_item_0] |
| 2609 | end)()) | 2612 | end |
| 2610 | print((function() | 2613 | local second_last |
| 2614 | do | ||
| 2611 | local _item_0 = data.items | 2615 | local _item_0 = data.items |
| 2612 | return _item_0[#_item_0 - 1] | 2616 | second_last = _item_0[#_item_0 - 1] |
| 2613 | end)()) | 2617 | end |
| 2614 | local mt = { } | 2618 | local mt = { } |
| 2615 | local add | 2619 | local add |
| 2616 | add = function(self, right) | 2620 | add = function(self, right) |
| @@ -3207,6 +3211,7 @@ local some_string = "Here is a string\n that has a line break in it." | |||
| 3207 | print("I am " .. tostring(math.random() * 100) .. "% sure.") | 3211 | print("I am " .. tostring(math.random() * 100) .. "% sure.") |
| 3208 | local integer = 1000000 | 3212 | local integer = 1000000 |
| 3209 | local hex = 0xEFBBBF | 3213 | local hex = 0xEFBBBF |
| 3214 | local binary = 19 | ||
| 3210 | local my_function | 3215 | local my_function |
| 3211 | my_function = function() end | 3216 | my_function = function() end |
| 3212 | my_function() | 3217 | my_function() |
