Skip to content

Fix how new(Str $m) parses entries that read "False"#2

Open
schultzdavid wants to merge 2 commits into
raku-community-modules:mainfrom
schultzdavid:patch-2
Open

Fix how new(Str $m) parses entries that read "False"#2
schultzdavid wants to merge 2 commits into
raku-community-modules:mainfrom
schultzdavid:patch-2

Conversation

@schultzdavid

Copy link
Copy Markdown

The current way uses .Bool.Str, but since any non-empty string booleanifies to "True", the check only works as intended for "True", whereas a string containing "False" will give an error:

> Math::Matrix.new("True True\nTrue False")
All rows must contain only numeric values

The current way uses `.Bool.Str`, but since any non-empty string booleanifies to "True", the check only works as intended for "True", whereas a string containing "False" will give an error:

```
> Math::Matrix.new("True True\nTrue False")
All rows must contain only numeric values
```
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.

1 participant