1. atheros
  2. love-mount

Commits

atheros  committed cbaa76d

Added a test to check the state of lines() bug

  • Participants
  • Parent commits a69d762
  • Branches default

Comments (0)

Files changed (5)

File tests/basic-mount-lines/README

View file
+Check lines() bug

File tests/basic-mount-lines/conf.lua

View file
+function love.conf(t)
+	-- allow mounting archives from anywhere
+	t.archives.allowedpaths = {""}
+end

File tests/basic-mount-lines/main.lua

View file
+
+function exit()
+	love.event.push("q")
+end
+
+function love.load()
+	-- mount the archive
+	print("Let's test if lines() works now")
+	
+	love.filesystem.mount("test.zip")
+	local found = false
+	
+	print("The message from mounted archive: ")
+	for line in love.filesystem.lines("TextFile.txt") do
+		print("line: "..line)
+	end
+
+	print("Now I'm going to save some kittens by umounting that archive!")
+	love.filesystem.umount("test.zip")
+		
+	return exit()
+end

File tests/basic-mount-lines/test.sh

View file
+#!/bin/sh
+../../src/love .

File tests/basic-mount-lines/test.zip

Binary file added.