Browse Source

Fix the tests for exception types

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1273/head
Dimitar Dobrev 6 years ago
parent
commit
58cc7c8ae8
  1. 8
      src/Generator.Tests/AST/TestAST.cs

8
src/Generator.Tests/AST/TestAST.cs

@ -503,12 +503,12 @@ namespace CppSharp.Generator.Tests.AST @@ -503,12 +503,12 @@ namespace CppSharp.Generator.Tests.AST
Is.EqualTo(ExceptionSpecType.BasicNoexcept));
var noExceptTrue = AstContext.FindFunction("noExceptTrue").First();
Assert.That(((FunctionType) noExcept.FunctionType.Type).ExceptionSpecType,
Is.EqualTo(ExceptionSpecType.NoexceptTrue).Or.EqualTo(ExceptionSpecType.BasicNoexcept));
Assert.That(((FunctionType) noExceptTrue.FunctionType.Type).ExceptionSpecType,
Is.EqualTo(ExceptionSpecType.NoexceptTrue));
var noExceptFalse = AstContext.FindFunction("noExceptFalse").First();
Assert.That(((FunctionType) noExcept.FunctionType.Type).ExceptionSpecType,
Is.EqualTo(ExceptionSpecType.NoexceptFalse).Or.EqualTo(ExceptionSpecType.BasicNoexcept));
Assert.That(((FunctionType) noExceptFalse.FunctionType.Type).ExceptionSpecType,
Is.EqualTo(ExceptionSpecType.NoexceptFalse));
var regular = AstContext.FindFunction("testSignature").First();
Assert.IsFalse(regular.IsConstExpr);

Loading…
Cancel
Save