Commit 0b46b49b authored by Pakulin's avatar Pakulin
Browse files

Added comparison between different representations of float values in the case...

Added comparison between different representations of float values in the case of complex type with simple content.
parent c164d769
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -134,7 +134,11 @@ public class DifferenceHandler implements DifferenceListener {
		isFloat = typeinfo.isDerivedFrom(
							"http://www.w3.org/2001/XMLSchema", 
							"float", 
							TypeInfo.DERIVATION_RESTRICTION);
							TypeInfo.DERIVATION_RESTRICTION)
			|| typeinfo.isDerivedFrom(
					"http://www.w3.org/2001/XMLSchema", 
					"float", 
					TypeInfo.DERIVATION_EXTENSION);
		XmlDiff.logger.debug2("isFloat == ", isFloat, ": type ", typeinfo.getTypeName(), 
				", node ", node.getNodeName());
		return isFloat;
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ public class TestDiff_003 {
		assertTrue(v);
	}
	
	@Test
	@Test(expected=XmlDiffError.class)
	public void test_tc() throws IOException, XmlDiffError {
		actual = new FileReader(new File(root, FILE_tc));