Skip to content

Commit

Permalink
change log updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Dec 29, 2023
1 parent 6f73d1f commit bfa0af1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
26 changes: 13 additions & 13 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@

## v1.3.1

+ file cleanup for the PowerShell Gallery
+ Updated `README.md`
+ Updated manifest
- file cleanup for the PowerShell Gallery
- Updated `README.md`
- Updated manifest

## v1.3.0

+ Added custom property to the number object
+ Added -WhatIf support for `Set-MyNumber`
+ Modified `Set-MyNumber` to modify the custom scriptblock
+ Updated help documentation
- Added custom property to the number object
- Added -WhatIf support for `Set-MyNumber`
- Modified `Set-MyNumber` to modify the custom scriptblock
- Updated help documentation

## v1.2.0

+ Updated license
+ Updated README
+ minor updates to help
- Updated license
- Updated README
- minor updates to help

## v1.1.0

+ Added license
+ updated manifest
- Added license
- updated manifest

## v1.0.0

+ Initial release as a module
- Initial release as a module
2 changes: 1 addition & 1 deletion License.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2018 JDH Information Technology Solutions, Inc.
Copyright (c) 2017-2023 JDH Information Technology Solutions, Inc.


Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
Binary file modified MyNumber.psd1
Binary file not shown.
30 changes: 15 additions & 15 deletions Tests/MyNumber.tests.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

Import-Module $psscriptroot\..\MyNumber.psd1 -force
Import-Module $PSScriptRoot\..\MyNumber.psd1 -Force

Describe New-MyNumber {
It "Should run without error" {
{New-MyNumber 1} | Should not Throw
It 'Should run without error' {
{ New-MyNumber 1 } | Should -Not Throw
}
It "Should create a MyNumber object type" {
It 'Should create a MyNumber object type' {
$n = New-MyNumber 1
$n.gettype().Name | Should be "MyNumber"
$n.GetType().Name | Should -Be 'MyNumber'
}
$prophash = @{

$PropHash = @{
Log = [double]
Number = [double]
Sqrt = [double]
Expand All @@ -27,20 +27,20 @@ Describe New-MyNumber {
Factors = [double[]]
Cube = [double]
}
$prophash.GetEnumerator() | foreach-object -begin {$n = New-MyNumber 2} -process {
$PropHash.GetEnumerator() | ForEach-Object -Begin { $n = New-MyNumber 2 } -Process {
It "Should have a property called $($_.key) of type $($_.value)" {
$n.$($_.key) -is $_.value | Should Be $True
$n.$($_.key) -is $_.value | Should -Be $True
}
}
It "Should create a new object with pipeline input" {
(1..5 | New-MyNumber).count | Should be 5
It 'Should create a new object with pipeline input' {
(1..5 | New-MyNumber).count | Should -Be 5
}

It "Should determine prime numbers" {
(2, 3, 5, 67, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 |New-MyNumber | where-object IsPrime).Count | Should be 20
It 'Should determine prime numbers' {
(2, 3, 5, 67, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 | New-MyNumber | Where-Object IsPrime).Count | Should -be 20
}

It "Should determine even numbers" {
(1..10 | New-MyNumber | where-object IsEven).count | Should Be 5
It 'Should determine even numbers' {
(1..10 | New-MyNumber | Where-Object IsEven).count | Should -Be 5
}
}

0 comments on commit bfa0af1

Please sign in to comment.