@@ -42,7 +42,7 @@ func TestIndexMethods(t *testing.T) {
4242 assert .Equal (t , "advanced_configuration.custom_openssl_cipher_config_tls12[-Value(\" TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\" )]" , conversion .AsRemovedIndex (setIndex ))
4343 setNoIndex , diags := conversion .AncestorPathNoIndex (setIndex , "custom_openssl_cipher_config_tls12" )
4444 assert .Empty (t , diags )
45- assert .Equal (t , "advanced_configuration.custom_openssl_cipher_config_tls12" , setNoIndex )
45+ assert .Equal (t , "advanced_configuration.custom_openssl_cipher_config_tls12" , setNoIndex . String () )
4646 assert .Empty (t , conversion .AsRemovedIndex (path .Root ("replication_specs" )))
4747}
4848
@@ -65,7 +65,7 @@ func TestParentPathWithIndex_Found(t *testing.T) {
6565 assert .Equal (t , parentPath .String (), parentPathActual .String ())
6666
6767 basePathActual , diags := conversion .AncestorPathWithIndex (childPath , "resource" )
68- assert .Equal (t , basePath .String (), basePathActual )
68+ assert .Equal (t , basePath .String (), basePathActual . String () )
6969 assert .Empty (t , diags , "Diagnostics should not have errors" )
7070}
7171
@@ -78,11 +78,11 @@ func TestParentPathWithIndex_FoundIncludesIndex(t *testing.T) {
7878
7979 parentPathActual , diags := conversion .AncestorPathWithIndex (childPath , "parent" )
8080 assert .Empty (t , diags )
81- assert .Equal (t , parentPath .AtListIndex (0 ).String (), parentPathActual )
81+ assert .Equal (t , parentPath .AtListIndex (0 ).String (), parentPathActual . String () )
8282
8383 basePathActual , diags := conversion .AncestorPathWithIndex (childPath , "resource" )
8484 assert .Empty (t , diags )
85- assert .Equal (t , basePath .AtListIndex (0 ).String (), basePathActual )
85+ assert .Equal (t , basePath .AtListIndex (0 ).String (), basePathActual . String () )
8686 assert .Empty (t , diags , "Diagnostics should not have errors" )
8787}
8888
0 commit comments