Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from briantist/master
Culture revamp, cacheable resources, small tweaks and fixes
- Loading branch information
Showing
14 changed files
with
549 additions
and
73 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,16 @@ | ||
Import-Module "$PSScriptRoot/../NameIT.psd1" | ||
Import-Module "$PSScriptRoot/../NameIT.psd1" -Force | ||
|
||
Describe "NameIT Tests" { | ||
|
||
Clear-CacheStore | ||
|
||
It "Should generate five entries" { | ||
$actual = Invoke-Generate -Template "[person]" -Count 5 | ||
$actual.count | Should Be 5 | ||
} | ||
|
||
# It "Should pass on 5.1 and 6" { | ||
# (Get-WmiObject win32_bios) | Should Not Be Null | ||
# } | ||
|
||
It "Should pass 5.1 and 6" { | ||
(Get-CimInstance win32_bios) | Should Not Be Null | ||
It "Should return a culture-specific space character" { | ||
$actual = Invoke-Generate -Template '[space 1 ja-JP]' | ||
$actual -as [char] -as [int] | Should Be 12288 | ||
} | ||
|
||
# It "Should fail on Linux" { | ||
# "" | Set-Content "$PSScriptRoot\Test.txt" | ||
# (Test-Path "$PSScriptRoot\test.txt") | Should Be $true | ||
# } | ||
|
||
# It "Should pass on Linux - correct case" { | ||
# "" | Set-Content "$PSScriptRoot\test.txt" | ||
# (Test-Path "$PSScriptRoot\test.txt") | Should Be $true | ||
# } | ||
} |
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,19 @@ | ||
amber | ||
beige | ||
black | ||
blue | ||
brown | ||
crimson | ||
cyan | ||
grey | ||
green | ||
indigo | ||
khaki | ||
magenta | ||
orange | ||
pink | ||
purple | ||
red | ||
violet | ||
white | ||
yellow |
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,19 @@ | ||
amber | ||
beige | ||
black | ||
blue | ||
brown | ||
crimson | ||
cyan | ||
gray | ||
green | ||
indigo | ||
khaki | ||
magenta | ||
orange | ||
pink | ||
purple | ||
red | ||
violet | ||
white | ||
yellow |
File renamed without changes.
File renamed without changes.
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 @@ | ||
|
File renamed without changes.
File renamed without changes.
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,20 @@ | ||
黒 | ||
白 | ||
赤 | ||
黄色 | ||
青 | ||
緑 | ||
茶色 | ||
桃色 | ||
橙色 | ||
灰色 | ||
紫 | ||
ブラック | ||
丹色 | ||
ブリュ | ||
褐色 | ||
淡紅色 | ||
ピンク | ||
オレンジ | ||
鼠色 | ||
パープル |
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 @@ | ||
|