Skip to content

EvanHahn/wren-please

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Please

Please is a simple assertion library for Wren. It works with Wren 0.3.0 as of now.

Basic usage

import "please" for Please

Please.equal(123, 123)
Please.notEqual(456, 789)

Please.deepEqual([1, [2, 3]], [1, [2, 3]])

Please.succeed { "Hello" + "nation" }
Please.fail { 123.badMethod }

Please.beNull(null)
Please.exist(anythingOtherThanNull)

Please.beTruthy(true)
Please.beTruthy(123)
Please.beFalsy(false)
Please.beFalsy(null)

Hacking on this

To run tests, run this:

wren_cli test.wren

About

Assertion library for Wren.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published