a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[tests] Add complex fn node / mfm art roundtrip test case

+25
+25
Iceshrimp.Tests/Parsing/MfmTests.cs
··· 368 368 } 369 369 370 370 [TestMethod] 371 + public void TestComplexFnRoundtrip() 372 + { 373 + // MFM art by https://github.com/ChaoticLeah 374 + const string input = """ 375 + <center> 376 + $[scale.x=10,y=10 $[scale.x=10,y=110 $[scale.x=10,y=10 ⬛]]] 377 + $[position.y=9 :neocat: :neocat_aww:] 378 + $[position.y=4.3 $[border.radius=20 ] 379 + ] 380 + $[followmouse.x $[position.y=.8 $[scale.x=5,y=5 $[scale.x=0.5,y=0.5 381 + ⚪$[position.x=-16.5 $[scale.x=10 $[scale.x=10 ⬛]]]$[position.x=16.5,y=-1.3 $[scale.x=10 $[scale.x=10 ⬛]]]]]]] 382 + 383 + 384 + $[position.x=-88 $[scale.x=10,y=10 $[scale.x=10,y=110 $[scale.x=10,y=10 ⬛]]]] 385 + $[position.x=88 $[scale.x=10,y=10 $[scale.x=10,y=110 $[scale.x=10,y=10 ⬛]]]] 386 + 387 + $[position.y=-10 Neocat Awwww Slider] 388 + </center> 389 + """; 390 + 391 + var res = Mfm.parse(input); 392 + MfmSerializer.Serialize(res).Should().BeEquivalentTo(input); 393 + } 394 + 395 + [TestMethod] 371 396 public void Benchmark() 372 397 { 373 398 const string mfm =