Skip to content

Commit ec53468

Browse files
fix(#952): Skip unit-test-missing lint for concrete objects with base
1 parent bbbe1c9 commit ec53468

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

src/main/resources/org/eolang/lints/tests/unit-test-missing.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<xsl:output encoding="UTF-8" method="xml"/>
1212
<xsl:template match="/">
1313
<defects>
14-
<xsl:if test="count(//o[starts-with(@name, '+')]) = 0">
14+
<xsl:if test="count(//o[starts-with(@name, '+')]) = 0 and not(/object/o/@base)">
1515
<xsl:element name="defect">
1616
<xsl:attribute name="line">
1717
<xsl:value-of select="0"/>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
2+
# SPDX-License-Identifier: MIT
3+
---
4+
sheets:
5+
- /org/eolang/lints/tests/unit-test-missing.xsl
6+
asserts:
7+
- /defects[count(defect)=0]
8+
document: |
9+
<object author="tests">
10+
<o base="Φ.number" name="nan">7F-F8-00-00-00-00-00-00</o>
11+
</object>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
2+
# SPDX-License-Identifier: MIT
3+
---
4+
sheets:
5+
- /org/eolang/lints/tests/unit-test-missing.xsl
6+
asserts:
7+
- /defects[count(defect)=0]
8+
input: |
9+
# The not a number object.
10+
number 7F-F8-00-00-00-00-00-00 > nan

0 commit comments

Comments
 (0)