Skip to content

Commit

Permalink
Add tests (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseharriaga committed Jun 12, 2024
1 parent 45fc4d7 commit db6328a
Show file tree
Hide file tree
Showing 32 changed files with 3,634 additions and 3 deletions.
8 changes: 7 additions & 1 deletion OpenAI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenAI", "src\OpenAI.csproj
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenAI.Examples", "examples\OpenAI.Examples.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAI.Tests", "tests\OpenAI.Tests.csproj", "{6F156401-2544-41D7-B204-3148C51C1D09}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -20,11 +22,15 @@ Global
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
{6F156401-2544-41D7-B204-3148C51C1D09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F156401-2544-41D7-B204-3148C51C1D09}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F156401-2544-41D7-B204-3148C51C1D09}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F156401-2544-41D7-B204-3148C51C1D09}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
EndGlobalSection
EndGlobal
EndGlobal
Binary file removed examples/Assets/images_flower_vase_mask.png
Binary file not shown.
Binary file added examples/Assets/images_flower_vase_with_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/Images/Example02_SimpleImageEdit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void Example02_SimpleImageEdit()

string imageFilePath = Path.Combine("Assets", "images_flower_vase.png");
string prompt = "A vase full of beautiful flowers.";
string maskFilePath = Path.Combine("Assets", "images_flower_vase_mask.png");
string maskFilePath = Path.Combine("Assets", "images_flower_vase_with_mask.png");

ImageEditOptions options = new()
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Images/Example02_SimpleImageEditAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public async Task Example02_SimpleImageEditAsync()

string imageFilePath = Path.Combine("Assets", "images_flower_vase.png");
string prompt = "A vase full of beautiful flowers.";
string maskFilePath = Path.Combine("Assets", "images_flower_vase_mask.png");
string maskFilePath = Path.Combine("Assets", "images_flower_vase_with_mask.png");

ImageEditOptions options = new()
{
Expand Down
Binary file added tests/Assets/audio_french.wav
Binary file not shown.
Binary file added tests/Assets/audio_hello_world.mp3
Binary file not shown.
Binary file added tests/Assets/images_dog_and_cat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/Assets/images_empty_room.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/Assets/images_empty_room_with_mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit db6328a

Please sign in to comment.