File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
rust/nu_plugin_custom_values Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ use std/assert
44@test
55def "test custom-value drop-check" [] {
66 # TODO: actually test the dropping behavior here somehow
7- assert equal (custom-value drop-check msg | describe ) CoolCustomValue
7+ assert equal (custom-value drop-check msg | describe ) DropCheckValue
88}
99
1010@test
1111def "test custom-value generate" [] {
1212 let custom_value = custom-value generate
1313 let custom_value2 = custom-value generate2
1414 assert equal ($custom_value | describe ) CoolCustomValue
15- assert equal ($custom_value2 | describe ) CoolCustomValue
16- assert not equal $custom_value $custom_value2
15+ assert equal ($custom_value2 | describe ) SecondCustomValue
16+ assert not equal ( $custom_value | to text ) ( $custom_value2 | to text )
1717}
1818
1919@test
@@ -28,6 +28,6 @@ def "test custom-value handle" [] {
2828@test
2929def "test custom-value update" [] {
3030 let value = custom-value generate
31- assert not equal ($value | custom-value update ) $value
32- assert not equal (custom-value update-arg $value ) $value
31+ assert not equal ($value | custom-value update | to text ) ( $value | to text )
32+ assert not equal (custom-value update-arg $value | to text ) ( $value | to text )
3333}
You can’t perform that action at this time.
0 commit comments