Skip to content

Commit

Permalink
feat: Porting Bash Template to Language Function (Fixes #589)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Nov 11, 2023
1 parent 2936176 commit e51ec2e
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Tests/Examples/Language.Rust.examples.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ describe 'Language.Rust' {
'

$HelloWorldRust.Evaluate('hi')
$HelloWorldRust.Save(@{Message='Hello'}) |
Foreach-Object {
$file = $_
if (Get-Command rustc -commandType Application) {
$null = rustc $file.FullName
& ".\$($file.Name.Replace($file.Extension, '.exe'))"
} else {
Write-Error "Go install Rust"
}
}
$HelloWorldRust.Save(@{Message='Hello'})
}
}
it 'Language.Rust Example 3' {
Expand All @@ -52,16 +43,7 @@ describe 'Language.Rust' {
println!(`"{}`",msg);
}
" | Set-Content .\HelloWorld_Rust.ps1.rs
Invoke-PipeScript .\HelloWorld_Rust.ps1.rs -Parameter @{message='hi'} |
Foreach-Object {
$file = $_
if (Get-Command rustc -commandType Application) {
$null = rustc $file.FullName
& ".\$($file.Name.Replace($file.Extension, '.exe'))"
} else {
Write-Error "Go install Rust"
}
}
Invoke-PipeScript .\HelloWorld_Rust.ps1.rs -Parameter @{message='hi'}
}
}

0 comments on commit e51ec2e

Please sign in to comment.