Skip to content

Commit

Permalink
tests: Regression test for googleapis#2542
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Sep 22, 2023
1 parent ac86e55 commit 3c085a0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Src/Support/Google.Apis.Tests/Apis/Requests/RequestBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ public void TestPathParameters_Level4()
SubtestPathParameters(vars, "{&list*}", "&list=red&list=green&list=blue");
}

[Fact]
public void ThaiComparisonRegression()
{
using var _ = new CultureSwitcher("th");
var builder = new RequestBuilder()
{
BaseUri = new Uri("https://accounts.google.com/o/oauth2/v2/auth"),
Path = "?access_type=offline~"
};
var actual = builder.BuildUri().AbsoluteUri;
var expected = "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline~";
Assert.Equal(expected, actual);
}

/// <summary>A subtest for path parameters.</summary>
/// <param name="dic">Dictionary that contain all path parameters.</param>
/// <param name="path">Path part.</param>
Expand Down

0 comments on commit 3c085a0

Please sign in to comment.