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

Boolean handling appears incorrect #8

Open
chaselgrove opened this issue Nov 21, 2024 · 2 comments
Open

Boolean handling appears incorrect #8

chaselgrove opened this issue Nov 21, 2024 · 2 comments

Comments

@chaselgrove
Copy link

BooleanTest asserts that UNF(true, false, true) should evaluate to UNF:6:PMaEyvdvyMz7EJV4mr7aZg==, but the Version 6 specification says that true and false should be treated as 0s and 1s, and UNF(1, 0, 1) evaluates to UNF:6:ZNhCrGAEYBJjVxipPl2P6w==.

@pdurbin
Copy link
Member

pdurbin commented Nov 21, 2024

UNF(1, 0, 1) evaluates to UNF:6:ZNhCrGAEYBJjVxipPl2P6w==

I'm confused about this part. Can you share any code that asserts this?

@chaselgrove
Copy link
Author

Perhaps the easiest way is to replace src/test/resources/test/IntTest with:

UNF:6:ZNhCrGAEYBJjVxipPl2P6w==
1
0
1

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

No branches or pull requests

2 participants