mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Fix Pester errors for countries with ',' as decimal separator
This commit is contained in:
@@ -132,6 +132,11 @@ Describe "Set-ExcelColumn, Set-ExcelRow and Set-ExcelRange" {
|
|||||||
12011,Crowbar,7,23.48
|
12011,Crowbar,7,23.48
|
||||||
"@
|
"@
|
||||||
|
|
||||||
|
# Pester errors for countries with ',' as decimal separator
|
||||||
|
Foreach ($datarow in $data) {
|
||||||
|
$datarow.Price = [decimal]($datarow.Price)
|
||||||
|
}
|
||||||
|
|
||||||
$DriverData = convertFrom-CSv @"
|
$DriverData = convertFrom-CSv @"
|
||||||
Name,Wikipage,DateOfBirth
|
Name,Wikipage,DateOfBirth
|
||||||
Fernando Alonso,/wiki/Fernando_Alonso,1981-07-29
|
Fernando Alonso,/wiki/Fernando_Alonso,1981-07-29
|
||||||
|
|||||||
Reference in New Issue
Block a user