From ac4d3f37f4cc7b7f618170980a625c85419cdea9 Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Sat, 2 Nov 2024 22:01:20 +0100 Subject: [PATCH] upd --- .aider/aider.psm1 | 2 +- .aider/prompts/segmented/ReorgParamTest.md | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .aider/prompts/segmented/ReorgParamTest.md diff --git a/.aider/aider.psm1 b/.aider/aider.psm1 index e03fe0c9d4..a20a4c8128 100644 --- a/.aider/aider.psm1 +++ b/.aider/aider.psm1 @@ -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" ) diff --git a/.aider/prompts/segmented/ReorgParamTest.md b/.aider/prompts/segmented/ReorgParamTest.md new file mode 100644 index 0000000000..a6cbef8e34 --- /dev/null +++ b/.aider/prompts/segmented/ReorgParamTest.md @@ -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-- \ No newline at end of file