Overview  Index  Help 

DependencyGraphTest0001


structure DependencyGraphTest0001 =
struct
  structure Assert = SMLUnit.Assert
  structure Test = SMLUnit.Test
  structure Testee = DependencyGraph
  val assertEqualIsDependsOn
  val testDependsOn0001
  val testDependsOn0002
  val testDependsOn0003
  val testGetClosure1001
  val testGetClosure2001
  val testGetClosure2002
  val testGetClosure2003
  val testGetClosure3001
  val testGetClosure3002
  val testGetClosure4001
  val testGetClosureRev1001
  val testGetClosureRev2001
  val testGetClosureRev2002
  val testGetClosureRev2003
  val testGetClosureRev3001
  val testGetClosureRev3002
  val testGetClosureRev4001
  val testSort1001
  val testSort1002
  val testSort2001
  val testSort2002
  val testSort3001
  val testSort3002
  val testSort3003
  val suite
end

unit test of structure DependencyGraph

       
Value detail

assertEqualIsDependsOn

val assertEqualIsDependsOn


testDependsOn0001

val testDependsOn0001

test case of dependsOn/isDependsOn (normal case)
  1. calls dependsOn.
  2. calls isDependsOn and verifies the return value indicates that there is a dependency with the attribute between the specified nodes.


testDependsOn0002

val testDependsOn0002

test case of dependsOn/isDependsOn (normal case)
  1. calls isDependsOn and verifies the return value indicates that there is no dependency with the attribute between the specified nodes.


testDependsOn0003

val testDependsOn0003

test case of dependsOn/isDependsOn (normal case)
  1. calls dependsOn.
  2. calls isDependsOn and verifies the return value indicates that there is a dependency with the attribute between the specified nodes.
  3. calls isDependsOn with src and destination reversed and verifies the return value indicates that there is no dependency of the opposite direction between the specified nodes.


testGetClosure1001

val testGetClosure1001

tests the getClosure function with a node graph.


testGetClosure2001

val testGetClosure2001

tests the getClosure function with two nodes graph where is no dependency.


testGetClosure2002

val testGetClosure2002

tests the getClosure function with two nodes graph where is a dependency.


testGetClosure2003

val testGetClosure2003

tests the getClosure function with two nodes graph which are mutual dependencies between the nodes.


testGetClosure3001

val testGetClosure3001

tests the getClosure function with three nodes graph.


testGetClosure3002

val testGetClosure3002

tests the getClosure function with three nodes graph.


testGetClosure4001

val testGetClosure4001

tests the getClosure function with four nodes graph.


testGetClosureRev1001

val testGetClosureRev1001

tests the getClosureRev function with a node graph.


testGetClosureRev2001

val testGetClosureRev2001

tests the getClosureRev function with two nodes graph where is no dependency.


testGetClosureRev2002

val testGetClosureRev2002

tests the getClosureRev function with two nodes graph where is a dependency.


testGetClosureRev2003

val testGetClosureRev2003

tests the getClosureRev function with two nodes graph which are mutual dependencies between the nodes.


testGetClosureRev3001

val testGetClosureRev3001

tests the getClosureRev function with three nodes graph.


testGetClosureRev3002

val testGetClosureRev3002

tests the getClosureRev function with three nodes graph.


testGetClosureRev4001

val testGetClosureRev4001

tests the getClosureRev function with four nodes graph.


testSort1001

val testSort1001

tests the sort function with a nodes graph without any dependency.


testSort1002

val testSort1002

tests the sort function with a nodes graph depending itself.


testSort2001

val testSort2001

tests the sort function with a two nodes graph where a nodes depends on the other node.


testSort2002

val testSort2002

tests the sort function with a two nodes graph where they depend on each other. The order of nodes in the result value of the sort function is not defined if they depend each other, but the function must return some value (not stuck).


testSort3001

val testSort3001

tests the sort function with a three nodes graph where two nodes depend the other node.


testSort3002

val testSort3002

tests the sort function with a three nodes graph where a node depends the other two nodes.


testSort3003

val testSort3003

tests the sort function with a three nodes graph where a node depends the other two nodes of which the one node depends the other node.


suite

val suite

 


Overview  Index  Help