Skip to content

Commit

Permalink
test(PlantUMLFramework): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jul 1, 2024
1 parent a2737ae commit 428b486
Showing 1 changed file with 28 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,33 @@ import XCTest
@testable import PlantUMLFramework

final class PlantUMLFrameworkTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(PlantUMLFramework().text, "Hello, World!")


func testPlantUML() {

let clazz = SyntaxStructure(rawValue: "Bob -> Alice : hello")

let script = PlantUMLScript( items: [clazz] )

let url = plantUMLUrl( of: script, format: .ASCIIArt )

print( url )

}

func testPlantUMLWithError() {

let clazz = SyntaxStructure(rawValue: "Bob > Alice : hello")

let script = PlantUMLScript( items: [clazz] )

var url = plantUMLUrl( of: script, format: .ASCIIArt )

print( url )

url = plantUMLUrl( of: script, format: .imagePng )

print( url )

}
}

0 comments on commit 428b486

Please sign in to comment.