Skip to content

Commit

Permalink
#3592: extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 3, 2024
1 parent 5600ae5 commit acba6a7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eo-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ SOFTWARE.
<dependency>
<groupId>org.eolang</groupId>
<artifactId>lints</artifactId>
<version>0.0.16</version>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.yegor256</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ SOFTWARE.
</xsl:template>
<xsl:template match="o[eo:abstract(.)]">
<xsl:element name="o">
<xsl:apply-templates select="@* except @base except @abstract"/>
<xsl:apply-templates select="@* except @base except @abstract except @atom"/>
<xsl:attribute name="base">
<xsl:value-of select="eo:name-of(.)"/>
</xsl:attribute>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# The MIT License (MIT)
#
# Copyright (c) 2016-2024 Objectionary.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
xsls:
- /org/eolang/parser/add-refs.xsl
- /org/eolang/parser/vars-float-up.xsl
tests:
- //objects[not(o[@atom and @base])]
- //objects[not(o[@atom and o[@base]])]
- //o[@atom and o[not(@base)]]
eo: |
# Test.
[] > main
[x] > foo /number
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ xsls:
- /org/eolang/parser/optimize/fix-missed-names.xsl
- /org/eolang/parser/clean-up.xsl
tests:
- //objects[not(o[@atom and o[@base]])]
- //o[@atom and o[not(@base) and x]]
- //objects[not(//o[@atom and @base])]
- //objects[not(//o[@atom and o[@base]])]
- //o[@atom and o[not(@base)]]
eo: |
# Test.
[] > main
Expand Down

0 comments on commit acba6a7

Please sign in to comment.