mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Added Wolfram Language extensions to the Mathematica section. I checked whether other languages have the same extensions I indroduced which is not the case.
Added a sample .wlt file for a Wolfram Unit Test
This commit is contained in:
@@ -1761,6 +1761,9 @@ Mathematica:
|
|||||||
- .ma
|
- .ma
|
||||||
- .nb
|
- .nb
|
||||||
- .nbp
|
- .nbp
|
||||||
|
- .wl
|
||||||
|
- .mt
|
||||||
|
- .wlt
|
||||||
aliases:
|
aliases:
|
||||||
- mma
|
- mma
|
||||||
ace_mode: text
|
ace_mode: text
|
||||||
|
|||||||
17
samples/Mathematica/UnitTest.wlt
Normal file
17
samples/Mathematica/UnitTest.wlt
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
BeginTestSection["Untitled-5"]
|
||||||
|
|
||||||
|
VerificationTest[(* 1 *)
|
||||||
|
RotationMatrix[phi]
|
||||||
|
,
|
||||||
|
List[List[Cos[phi], Times[-1, Sin[phi]]], List[Sin[phi], Cos[phi]]]
|
||||||
|
]
|
||||||
|
|
||||||
|
VerificationTest[(* 2 *)
|
||||||
|
Times[1, Power[Plus[a, Times[-1, a]], -1]]
|
||||||
|
,
|
||||||
|
ComplexInfinity
|
||||||
|
,
|
||||||
|
{Power::infy}
|
||||||
|
]
|
||||||
|
|
||||||
|
EndTestSection[]
|
||||||
Reference in New Issue
Block a user