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

Can not parse string like bar10.0 #39

Open
Rory-Z opened this issue Jul 24, 2023 · 1 comment
Open

Can not parse string like bar10.0 #39

Rory-Z opened this issue Jul 24, 2023 · 1 comment

Comments

@Rory-Z
Copy link
Contributor

Rory-Z commented Jul 24, 2023

I add test case like this:

	t.Run("parse the string and return a pointer to the Config", func(t *testing.T) {
		got, err := ParseString("{foo:bar10.0}")
		assertNoError(t, err)
		assertDeepEqual(t, got, &Config{Object{"foo": String("bar10.0")}})
	})

and I got this: expected: "{foo:\"bar10.0\"}", got: "{foo:\"bar10\"\"\"0e+00}"

In HOCON Playground, I'm input foo: bar1.0 and I got "foo" : "bar1.0", So I think this is a bug.

@Rory-Z
Copy link
Contributor Author

Rory-Z commented Jul 24, 2023

@gurkankaymak Could you please take a look ?

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

1 participant