Skip to content

Commit

Permalink
Merge pull request #467 from evo-lua/labsound-label-fixes
Browse files Browse the repository at this point in the history
Fix some section labels in the labsound unit tests
  • Loading branch information
rdw-software authored Feb 2, 2024
2 parents 1e91fdc + 1ff875c commit 13171ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/BDD/labsound-library.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ describe("labsound", function()
end)

describe("labsound_gain_node_set_value", function()
it("should return false if nullptr values are passed", function()
it("should return false if nullptr values were passed", function()
assertFalse(labsound.bindings.labsound_gain_node_set_value(nil, 0.5))
end)

it("should return false if invalid nodes are passed", function()
it("should return false if invalid nodes were passed", function()
local node = ffi.new("labsound_gain_node_t") -- Uninitialized
assertFalse(labsound.bindings.labsound_gain_node_set_value(node, 0.5))
end)
Expand All @@ -253,7 +253,7 @@ describe("labsound", function()
end)

describe("labsound_sampled_audio_node_from_memory", function()
it("should return nullptr if nullptr values are passed", function()
it("should return nullptr if nullptr values were passed", function()
local context = ffi.new("labsound_audio_context_t")
local WAV_FILE = path.join("deps", "LabSound", "LabSound", "assets", "samples", "stereo-music-clip.wav")
local WAV_FILE_CONTENTS = C_FileSystem.ReadFile(WAV_FILE)
Expand All @@ -269,7 +269,7 @@ describe("labsound", function()
assert(labsound.bindings.labsound_sampled_audio_node_from_memory(nil, nil, 0, false) == ffi.NULL)
end)

it("should return nullptr if an invalid file contents were passed", function()
it("should return nullptr if invalid file contents were passed", function()
local context = ffi.new("labsound_audio_context_t")
local fileContents = "invalid"
assert(
Expand Down

0 comments on commit 13171ac

Please sign in to comment.