(left, right value)
| 151 | } |
| 152 | |
| 153 | func (l *State) lessOrEqual(left, right value) bool { |
| 154 | if lf, ok := left.(float64); ok { |
| 155 | if rf, ok := right.(float64); ok { |
| 156 | return lf <= rf |
| 157 | } |
| 158 | } else if ls, ok := left.(string); ok { |
| 159 | if rs, ok := right.(string); ok { |
| 160 | return ls <= rs |
| 161 | } |
| 162 | } |
| 163 | if result, ok := l.callOrderTagMethod(left, right, tmLE); ok { |
| 164 | return result |
| 165 | } else if result, ok := l.callOrderTagMethod(right, left, tmLT); ok { |
| 166 | return !result |
| 167 | } |
| 168 | l.orderError(left, right) |
| 169 | return false |
| 170 | } |
| 171 | |
| 172 | func (l *State) concat(total int) { |
| 173 | t := func(i int) value { return l.stack[l.top-i] } |
no test coverage detected