![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
"Frustra fit per plura quod potest fieri per pauciora." --William of Ockham
"It is futile to do with more things that which can be done with fewer."
Extremely minimal test framework. Perfect for DIY lovers. Nanotest provides the bare minimum needed; for everything else, there's ruby.
gem install nanotest
require 'nanotest'
include Nanotest
assert { 1 == 1 }
assert { 2 > 1 }
assert { not 1 > 2 }
assert { 1 == 2 } #line 12
outputs:
...F
(examples.rb:012) assertion failed
See actual use at http://github.com/mynyml/phocus/blob/master/test/test_phocus.rb
Nanotest has a single method: #assert
. You can either include Nanotest as
above, or use its method directly: Nanotest.assert { true }
. Its block is
expected to return a boolean. If it's false it fails, otherwise it passes.
Simple as that.
#assert
also accepts a custom failure message:
assert("foo is too small") { @foo > 5 } #line 36
#=> (examples.rb:036) foo is too small
That's pretty much it. Maximum Simplicity. If you insist on doing something fancy, check out the wiki for a few tips and tricks.
$ rake -s loc
lib contains 18 SLOCs
FAQs
Unknown package
We found that nanotest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.