MCPcopy Index your code
hub / github.com/pydata/xarray / test_range_index_equals_different_stop

Function test_range_index_equals_different_stop

xarray/tests/test_range_index.py:351–357  ·  view source on GitHub ↗

Test that equals() returns False for indexes with significantly different stop values.

()

Source from the content-addressed store, hash-verified

349
350
351def test_range_index_equals_different_stop() -> None:
352 """Test that equals() returns False for indexes with significantly different stop values."""
353 index1 = RangeIndex.arange(0.0, 0.3, 0.1, dim="x")
354 index2 = RangeIndex.arange(0.0, 0.5, 0.1, dim="x")
355
356 assert not index1.equals(index2)
357 assert not index2.equals(index1)
358
359
360def test_range_index_equals_different_type() -> None:

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…