From 83d4d9e71d9f0553ec843e0e478dd906e5a74222 Mon Sep 17 00:00:00 2001 From: jdkato Date: Tue, 26 Dec 2023 15:26:57 -0800 Subject: [PATCH] test: add case for vocab --- internal/check/manager.go | 3 ++- testdata/fixtures/spellingv3/.vale.ini | 2 ++ testdata/fixtures/spellingv3/test.md | 2 ++ testdata/styles/config/vocabularies/Cap/accept.txt | 9 +++++---- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/internal/check/manager.go b/internal/check/manager.go index 7e954c64..57eaa278 100755 --- a/internal/check/manager.go +++ b/internal/check/manager.go @@ -7,9 +7,10 @@ import ( "path/filepath" "strings" + "github.com/karrick/godirwalk" + "github.com/errata-ai/vale/v2/internal/core" "github.com/errata-ai/vale/v2/internal/nlp" - "github.com/karrick/godirwalk" ) // Manager controls the loading and validating of the check extension points. diff --git a/testdata/fixtures/spellingv3/.vale.ini b/testdata/fixtures/spellingv3/.vale.ini index 70453a07..6eeb65c2 100755 --- a/testdata/fixtures/spellingv3/.vale.ini +++ b/testdata/fixtures/spellingv3/.vale.ini @@ -1,5 +1,7 @@ StylesPath = ../../styles MinAlertLevel = suggestion +Vocab = Cap + [*] Vale.Spelling = YES diff --git a/testdata/fixtures/spellingv3/test.md b/testdata/fixtures/spellingv3/test.md index cee327ee..66ce2632 100755 --- a/testdata/fixtures/spellingv3/test.md +++ b/testdata/fixtures/spellingv3/test.md @@ -9,3 +9,5 @@ That doesn't work. That doesn‘t work. abdominocentesis is a word. + +HTTPied \ No newline at end of file diff --git a/testdata/styles/config/vocabularies/Cap/accept.txt b/testdata/styles/config/vocabularies/Cap/accept.txt index 24b23ef5..b039d3b1 100644 --- a/testdata/styles/config/vocabularies/Cap/accept.txt +++ b/testdata/styles/config/vocabularies/Cap/accept.txt @@ -1,6 +1,7 @@ congressman -hubba -very -High-Def Render Pipeline H-Def Render Pipeline -High Definition Render Pipeline \ No newline at end of file +High Definition Render Pipeline +High-Def Render Pipeline +HTTPied +hubba +very \ No newline at end of file