Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Nov 4, 2022
1 parent 9395b10 commit b4b94be
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOBinding.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_that("encoding",{
md2 <- ISOBinding$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -116,6 +116,6 @@ test_that("encoding - i18n",{
md2 <- ISOBinding$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOBoundAssociationRole.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_that("encoding",{
md2 <- ISOBoundAssociationRole$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -162,6 +162,6 @@ test_that("encoding - i18n",{
md2 <- ISOBoundAssociationRole$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOBoundFeatureAttribute.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test_that("encoding",{
md2 <- ISOBoundFeatureAttribute$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -164,6 +164,6 @@ test_that("encoding - i18n",{
md2 <- ISOBoundFeatureAttribute$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
2 changes: 1 addition & 1 deletion tests/testthat/test_ISOFeatureAssociation.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ test_that("encoding",{
md2 <- ISOFeatureAssociation$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOFeatureAttribute.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test_that("encoding",{
md2 <- ISOFeatureAttribute$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -74,6 +74,6 @@ test_that("encoding - i18n",{
md2 <- ISOFeatureAttribute$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOFeatureCatalogue.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test_that("encoding",{
fc2 <- ISOFeatureCatalogue$new(xml = xml)
xml2 <- fc2$encode()

expect_true(ISOAbstractObject$compare(fc, fc2))
expect_true(ISOAbstractObject$compare(fc, fc2, "xml"))

})

Expand Down Expand Up @@ -315,6 +315,6 @@ test_that("encoding - i18n",{
fc2 <- ISOFeatureCatalogue$new(xml = xml)
xml2 <- fc2$encode()

expect_true(ISOAbstractObject$compare(fc, fc2))
expect_true(ISOAbstractObject$compare(fc, fc2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOFeatureOperation.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test_that("encoding",{
md2 <- ISOFeatureOperation$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -58,6 +58,6 @@ test_that("encoding - i18n",{
md2 <- ISOFeatureOperation$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOFeatureType.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ test_that("encoding",{
md2 <- ISOFeatureType$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -180,6 +180,6 @@ test_that("encoding",{
md2 <- ISOFeatureType$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
2 changes: 1 addition & 1 deletion tests/testthat/test_ISOInheritanceRelation.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,6 @@ test_that("encoding",{
md2 <- ISOInheritanceRelation$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
2 changes: 1 addition & 1 deletion tests/testthat/test_ISOMultiplicity.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ test_that("encoding",{
md2 <- ISOMultiplicity$new(xml = xml)
xml2 <- md2$encode()

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})
4 changes: 2 additions & 2 deletions tests/testthat/test_ISOPropertyType.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test_that("encoding",{
md2 <- ISOPropertyType$new(xml = xml)
xml2 <- md2$encode(validate = F)

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

Expand Down Expand Up @@ -52,6 +52,6 @@ test_that("encoding - i18n",{
md2 <- ISOPropertyType$new(xml = xml)
xml2 <- md2$encode(validate = F)

expect_true(ISOAbstractObject$compare(md, md2))
expect_true(ISOAbstractObject$compare(md, md2, "xml"))

})

0 comments on commit b4b94be

Please sign in to comment.