Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

matching_test.go 768B

12345678910111213141516171819202122232425262728293031323334353637
  1. package modules
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func Test_simpleLList_pbNtraverse(t *testing.T) {
  7. mylist := new(LList)
  8. mylist.PushBack(30)
  9. mylist.PushBack(40)
  10. mylist.PushBack(20)
  11. mylist.PushBack(10)
  12. ptr := mylist.head
  13. for ptr != nil {
  14. fmt.Printf("data = %d, address = %p\n", ptr.val, ptr.next)
  15. ptr = ptr.next
  16. }
  17. }
  18. func Test_simpleLList_mergeSort(t *testing.T) {
  19. mylist := new(LList)
  20. mylist.PushBack(30)
  21. mylist.PushBack(40)
  22. mylist.PushBack(20)
  23. mylist.PushBack(10)
  24. mylist.head = MergeSort(mylist.head, mylist.size / 2)
  25. ptr := mylist.head
  26. for ptr != nil {
  27. fmt.Printf("data = %d, address = %p\n", ptr.val, ptr.next)
  28. ptr = ptr.next
  29. }
  30. }
  31. func Test_removeArray(t *testing.T){}
  32. func Test_deleteList(t *testing.T){}
  33. func Test_insertList(t *testing.T){}