Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add null to json #201

Merged
merged 1 commit into from
Mar 8, 2017
Merged

Add null to json #201

merged 1 commit into from
Mar 8, 2017

Conversation

apalm
Copy link
Contributor

@apalm apalm commented Mar 7, 2017

Resolves #170.

lib/json.js Outdated
@@ -11,13 +11,22 @@ var shrink = require("./shrink.js");
var string = require("./string.js");
var utils = require("./utils.js");

var nulll = primitive.constant(null);
Copy link
Contributor Author

@apalm apalm Mar 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if this is better than e.g.

var nulll = arbitraryBless({
  generator: generator.constant(null),
  shrink: shrink.noop,
  show: show.def,
});

Also, suggestions for a better name than nulll welcome 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null_constant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nullArb.

@StoneCypher I don't use snake_case in the code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was joking

@apalm apalm force-pushed the gh-170 branch 2 times, most recently from b074217 to f10c23d Compare March 7, 2017 22:56
Copy link
Member

@phadej phadej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nulll -> nullArb

@phadej phadej merged commit b363b07 into jsverify:master Mar 8, 2017
@phadej
Copy link
Member

phadej commented Mar 8, 2017

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants