Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Nov 2, 2024
1 parent 9642b4e commit ac4d3f3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .aider/aider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Update-PesterTest {
[string[]]$CacheFilePath = @("/workspace/.aider/prompts/conventions.md", "/workspace/private/testing/Get-TestConfig.ps1"),
[int]$MaxFileSize = 7.5kb,
[string]$Model,
[string]$LargeFileModel = "gpt-4o-mini",
[string]$LargeFileModel = "azure/gpt-4o-mini",
[ValidateSet("whole", "diff", "diff-fenced", "unified diff", "editor-diff", "editor-whole")]
[string]$EditFormat = "whole"
)
Expand Down
28 changes: 28 additions & 0 deletions .aider/prompts/segmented/ReorgParamTest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Good Parameter Test

```powershell
Describe "Get-DbaDatabase" -Tag "UnitTests" {
BeforeAll {
$command = Get-Command Get-DbaDatabase
$expected = $TestConfig.CommonParameters
$expected += @(
"SqlInstance",
"SqlCredential",
"Database
)
}
Context "Parameter validation" {
It "Has parameter: <_>" -ForEach $expected {
$command | Should -HaveParameter $PSItem
}
It "Should have exactly the number of expected parameters ($($expected.Count))" {
$hasparms = $command.Parameters.Values.Name
Compare-Object -ReferenceObject $expected -DifferenceObject $hasparms | Should -BeNullOrEmpty
}
}
}
```

But with these parameters:
--PARMZ--

0 comments on commit ac4d3f3

Please sign in to comment.