From: se8.and@... Date: 2018-07-20T13:27:09+00:00 Subject: [ruby-core:88019] [Ruby trunk Feature#14925] Kernel#assert(expression) Issue #14925 has been reported by deneb (S��bastien Durand). ---------------------------------------- Feature #14925: Kernel#assert(expression) https://bugs.ruby-lang.org/issues/14925 * Author: deneb (S��bastien Durand) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Sometimes, you want to quickly test your code, but it's overkill to reach for a unit test library. So could it be useful to add this method to Ruby? ~~~ ruby def assert(expression) expression or raise AssertionError, 'assertion failed', caller end ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: