-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Build" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- windows-latest | ||
# - macos-latest | ||
- ubuntu-latest | ||
nimversion: | ||
- stable | ||
- devel | ||
name: ${{ matrix.os }} - ${{ matrix.nimversion }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: iffy/[email protected] | ||
with: | ||
version: ${{ matrix.nimversion }} | ||
- run: nim --version | ||
- name: Refresh packages + install dependencies | ||
run: | | ||
nimble refresh | ||
nimble install -d | ||
- name: Run all tests | ||
run: nimble test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import xml, xml/selector | ||
|
||
let content1 = """<?xml version="1.0" encoding="UTF-8"?><profile> | ||
<steamID64>76561198859045421</steamID64> | ||
</profile>""" | ||
|
||
let content2 = """<?xml version="1.0" encoding="UTF-8"?> <profile> | ||
<steamID64>76561198859045421</steamID64> | ||
</profile>""" | ||
|
||
var | ||
d1 = q(content1) | ||
d2 = q(content2) | ||
|
||
echo d1.select("steamID64") | ||
echo d2.select("steamID64") | ||
assert d1.select("steamID64")[0].text == d2.select("steamID64")[0].text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters