From 66311c798f9529f6936f4bcfdd069500c31d2bb2 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 21 Jan 2021 08:56:37 +0000 Subject: [PATCH] APVTS: Give AudioProcessorParameterGroups used in unit tests unique IDs to avoid an assertion in debug builds --- .../utilities/juce_AudioProcessorValueTreeState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp b/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp index b0d8bdd4d5..2d4bfac237 100644 --- a/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp +++ b/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp @@ -696,10 +696,10 @@ public: beginTest ("After construction, the value tree has the expected format"); { TestAudioProcessor proc ({ - std::make_unique ("", "", "", + std::make_unique ("A", "", "", std::make_unique ("a", "", false), std::make_unique ("b", "", NormalisableRange{}, 0.0f)), - std::make_unique ("", "", "", + std::make_unique ("B", "", "", std::make_unique ("c", "", 0, 1, 0), std::make_unique ("d", "", StringArray { "foo", "bar" }, 0)) });