Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

fix yaml map's equality #6

Closed
suzuki-shunsuke opened this issue Oct 12, 2020 · 3 comments
Closed

fix yaml map's equality #6

suzuki-shunsuke opened this issue Oct 12, 2020 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented Oct 12, 2020

---
entries:
- name: main
  script_file: foo.tengo
  params: {}
  tests:
  - name: test
    var_name: result
    equal:
      foo: hello

foo.tengo

result := {
  foo: "hello"
}
$ tengo-tester run
test fails
entry_name: main
test_name: test
the value of the variable result is unexpected (-want, +got)
interface{}(
-       map[interface{}]interface{}{string("foo"): string("hello")},
+       map[string]interface{}{"foo": string("hello")},
  )
entry fails
entry_name: main

FATA[0000]
@suzuki-shunsuke suzuki-shunsuke added the bug Something isn't working label Oct 12, 2020
@suzuki-shunsuke
Copy link
Owner Author

@suzuki-shunsuke
Copy link
Owner Author

suzuki-shunsuke commented Oct 12, 2020

https://github.com/suzuki-shunsuke/go-dataeq

json: unsupported type: map[interface {}]interface {}

@suzuki-shunsuke
Copy link
Owner Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant