#!/bin/bash

load test_helper

@test "ip returns an ip" {
  ip=$(lstack ip)
  [ -n "$ip" ]
}

#!/bin/bash

load test_helper

@test "ip returns an ip" {
  ip=$(lstack ip)
  [[ "$ip" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]
}

Use a regexp to test the IP
Use a regexp to test the IP
