From 5d2f52e4e943d0498a02de27bddbf13fb5cef060 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 21 Sep 2016 11:09:40 -0700 Subject: [PATCH] Fix indentation in the test --- .../LanguageAndParser.TestFollowup.Tests.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 b/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 index b86af259a7..bd0b2b8594 100644 --- a/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 +++ b/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 @@ -131,14 +131,14 @@ Describe "Assign automatic variables" -Tags "CI" { } It "Assign auto w/ correct type constraint" { - & { [object]$_ = 1; $_ } | Should Be 1 - & { [object[]]$args = 1; $args } | Should Be 1 - & { [object]$this = 1; $this } | Should Be 1 - & { [object]$input = 1; $input } | Should Be 1 - # Can't test PSCmdlet or PSBoundParameters, they use an internal type - & { [System.Management.Automation.InvocationInfo]$myInvocation = $myInvocation; $myInvocation.Line } | Should Match Automation.InvocationInfo - & { [string]$PSScriptRoot = 'abc'; $PSScriptRoot } | Should Be abc - & { [string]$PSCommandPath = 'abc'; $PSCommandPath } | Should Be abc + & { [object]$_ = 1; $_ } | Should Be 1 + & { [object[]]$args = 1; $args } | Should Be 1 + & { [object]$this = 1; $this } | Should Be 1 + & { [object]$input = 1; $input } | Should Be 1 + # Can't test PSCmdlet or PSBoundParameters, they use an internal type + & { [System.Management.Automation.InvocationInfo]$myInvocation = $myInvocation; $myInvocation.Line } | Should Match Automation.InvocationInfo + & { [string]$PSScriptRoot = 'abc'; $PSScriptRoot } | Should Be abc + & { [string]$PSCommandPath = 'abc'; $PSCommandPath } | Should Be abc } It "Assign `$? w/o type constraint" {