Skip to content

Commit

Permalink
add updated weight table to implement v400 of vocalink spec (#10)
Browse files Browse the repository at this point in the history
closes #9 

* add updated weight table. For #9.

* update fairly useless line number count test

* update version number in appveyor artifact path

* update semver file

* add nupkg to repo so it can be published on github too
  • Loading branch information
pauldambra authored Jan 4, 2017
1 parent a817051 commit d92426e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .semver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:major: 1
:minor: 3
:patch: 1
:minor: 4
:patch: 0
:special: ""
Binary file added Build/nuget/ModulusChecker.1.4.0.nupkg
Binary file not shown.
3 changes: 2 additions & 1 deletion ModulusChecking/Resources/valacdos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@
601403 608028 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1
608301 608301 MOD10 0 0 0 0 0 0 7 1 3 7 1 3 7 1
608316 608316 MOD10 0 0 0 0 0 0 8 7 6 5 4 3 2 1
608371 608371 MOD11 0 0 0 0 0 0 2 8 4 3 7 5 6 1
609593 609593 MOD10 0 0 0 0 0 0 7 1 3 7 1 3 7 1
609599 609599 MOD10 0 0 0 0 0 0 0 5 7 5 2 1 2 1
640001 640001 MOD11 0 0 0 0 0 0 8 7 6 5 4 3 2 1
Expand Down Expand Up @@ -1011,4 +1012,4 @@
983003 987000 MOD11 0 0 0 0 0 0 7 6 5 4 3 2 1 0
983003 987000 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1
987004 989999 MOD11 0 0 0 0 0 0 7 6 5 4 3 2 1 0
987004 989999 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1
987004 989999 DBLAL 2 1 2 1 2 1 2 1 2 1 2 1 2 1
9 changes: 1 addition & 8 deletions ModulusCheckingTests/Loaders/ModulusWeightTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ public void CanReadWeightFileResource()
Assert.IsInstanceOf(typeof(string),weightFile);
}

[Test]
public void CanLoadWeightFileRows()
{
var modulusWeight = ModulusWeightTable.GetInstance;
Assert.AreEqual(1014, modulusWeight.RuleMappings.Count());
}

[Test]
public void CanGetRuleMappings()
{
var modulusWeight = ModulusWeightTable.GetInstance;
Assert.NotNull(modulusWeight.RuleMappings);
Assert.AreEqual(1014, modulusWeight.RuleMappings.Count());
Assert.AreEqual(1015, modulusWeight.RuleMappings.Count());
Assert.IsInstanceOf<ModulusWeightMapping>(modulusWeight.RuleMappings.ElementAt(0));
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ NB the resource text files valacdos.txt and scsubtab.txt are produced and releas

#### Vocalink Version

Currently uses v3.9 of Vocalink Modulus Checking copied from their site on 2016-09-06
Currently uses v4.0 of Vocalink Modulus Checking copied from their site on 2017-01-04
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.3.1.{build}
version: 1.4.0.{build}
pull_requests:
do_not_increment_build_number: true
clone_depth: 1
Expand All @@ -14,7 +14,7 @@ build: off
test_script:
- cmd: bundle exec rake tests
artifacts:
- path: '**\Build\appveyor_artifacts\ModulusChecker.1.3.1.nupkg'
- path: '**\Build\appveyor_artifacts\ModulusChecker.1.4.0.nupkg'
name: nuget_artifact
deploy: off
# on_finish:
Expand Down

0 comments on commit d92426e

Please sign in to comment.